Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0e65f61

Browse files
committed
[po] auto sync bot
1 parent bbeece5 commit 0e65f61

7 files changed

Lines changed: 4116 additions & 4068 deletions

File tree

c-api/init.po

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.7\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2019-03-31 11:01+0900\n"
15+
"POT-Creation-Date: 2019-04-02 11:41+0900\n"
1616
"PO-Revision-Date: 2017-02-16 17:36+0000\n"
1717
"Last-Translator: Trim21 <[email protected]>, 2019\n"
1818
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1627,28 +1627,32 @@ msgid ""
16271627
msgstr ""
16281628

16291629
#: ../../c-api/init.rst:1388
1630+
msgid "Return the main interpreter state object."
1631+
msgstr ""
1632+
1633+
#: ../../c-api/init.rst:1393
16301634
msgid ""
16311635
"Return the next interpreter state object after *interp* from the list of all"
16321636
" such objects."
16331637
msgstr ""
16341638

1635-
#: ../../c-api/init.rst:1394
1639+
#: ../../c-api/init.rst:1399
16361640
msgid ""
16371641
"Return the pointer to the first :c:type:`PyThreadState` object in the list "
16381642
"of threads associated with the interpreter *interp*."
16391643
msgstr ""
16401644

1641-
#: ../../c-api/init.rst:1400
1645+
#: ../../c-api/init.rst:1405
16421646
msgid ""
16431647
"Return the next thread state object after *tstate* from the list of all such"
16441648
" objects belonging to the same :c:type:`PyInterpreterState` object."
16451649
msgstr ""
16461650

1647-
#: ../../c-api/init.rst:1407
1651+
#: ../../c-api/init.rst:1412
16481652
msgid "Thread Local Storage Support"
16491653
msgstr ""
16501654

1651-
#: ../../c-api/init.rst:1411
1655+
#: ../../c-api/init.rst:1416
16521656
msgid ""
16531657
"The Python interpreter provides low-level support for thread-local storage "
16541658
"(TLS) which wraps the underlying native TLS implementation to support the "
@@ -1658,19 +1662,19 @@ msgid ""
16581662
"thread."
16591663
msgstr ""
16601664

1661-
#: ../../c-api/init.rst:1418
1665+
#: ../../c-api/init.rst:1423
16621666
msgid ""
16631667
"The GIL does *not* need to be held when calling these functions; they supply"
16641668
" their own locking."
16651669
msgstr ""
16661670

1667-
#: ../../c-api/init.rst:1421
1671+
#: ../../c-api/init.rst:1426
16681672
msgid ""
16691673
"Note that :file:`Python.h` does not include the declaration of the TLS APIs,"
16701674
" you need to include :file:`pythread.h` to use thread-local storage."
16711675
msgstr ""
16721676

1673-
#: ../../c-api/init.rst:1425
1677+
#: ../../c-api/init.rst:1430
16741678
msgid ""
16751679
"None of these API functions handle memory management on behalf of the "
16761680
":c:type:`void\\*` values. You need to allocate and deallocate them "
@@ -1679,90 +1683,90 @@ msgid ""
16791683
"either."
16801684
msgstr ""
16811685

1682-
#: ../../c-api/init.rst:1433
1686+
#: ../../c-api/init.rst:1438
16831687
msgid "Thread Specific Storage (TSS) API"
16841688
msgstr ""
16851689

1686-
#: ../../c-api/init.rst:1435
1690+
#: ../../c-api/init.rst:1440
16871691
msgid ""
16881692
"TSS API is introduced to supersede the use of the existing TLS API within "
16891693
"the CPython interpreter. This API uses a new type :c:type:`Py_tss_t` "
16901694
"instead of :c:type:`int` to represent thread keys."
16911695
msgstr ""
16921696

1693-
#: ../../c-api/init.rst:1441
1697+
#: ../../c-api/init.rst:1446
16941698
msgid "\"A New C-API for Thread-Local Storage in CPython\" (:pep:`539`)"
16951699
msgstr ""
16961700

1697-
#: ../../c-api/init.rst:1446
1701+
#: ../../c-api/init.rst:1451
16981702
msgid ""
16991703
"This data structure represents the state of a thread key, the definition of "
17001704
"which may depend on the underlying TLS implementation, and it has an "
17011705
"internal field representing the key's initialization state. There are no "
17021706
"public members in this structure."
17031707
msgstr ""
17041708

1705-
#: ../../c-api/init.rst:1451
1709+
#: ../../c-api/init.rst:1456
17061710
msgid ""
17071711
"When :ref:`Py_LIMITED_API <stable>` is not defined, static allocation of "
17081712
"this type by :c:macro:`Py_tss_NEEDS_INIT` is allowed."
17091713
msgstr ""
17101714

1711-
#: ../../c-api/init.rst:1457
1715+
#: ../../c-api/init.rst:1462
17121716
msgid ""
17131717
"This macro expands to the initializer for :c:type:`Py_tss_t` variables. Note"
17141718
" that this macro won't be defined with :ref:`Py_LIMITED_API <stable>`."
17151719
msgstr ""
17161720

1717-
#: ../../c-api/init.rst:1462
1721+
#: ../../c-api/init.rst:1467
17181722
msgid "Dynamic Allocation"
17191723
msgstr ""
17201724

1721-
#: ../../c-api/init.rst:1464
1725+
#: ../../c-api/init.rst:1469
17221726
msgid ""
17231727
"Dynamic allocation of the :c:type:`Py_tss_t`, required in extension modules "
17241728
"built with :ref:`Py_LIMITED_API <stable>`, where static allocation of this "
17251729
"type is not possible due to its implementation being opaque at build time."
17261730
msgstr ""
17271731

1728-
#: ../../c-api/init.rst:1471
1732+
#: ../../c-api/init.rst:1476
17291733
msgid ""
17301734
"Return a value which is the same state as a value initialized with "
17311735
":c:macro:`Py_tss_NEEDS_INIT`, or *NULL* in the case of dynamic allocation "
17321736
"failure."
17331737
msgstr ""
17341738

1735-
#: ../../c-api/init.rst:1478
1739+
#: ../../c-api/init.rst:1483
17361740
msgid ""
17371741
"Free the given *key* allocated by :c:func:`PyThread_tss_alloc`, after first "
17381742
"calling :c:func:`PyThread_tss_delete` to ensure any associated thread locals"
17391743
" have been unassigned. This is a no-op if the *key* argument is `NULL`."
17401744
msgstr ""
17411745

1742-
#: ../../c-api/init.rst:1484
1746+
#: ../../c-api/init.rst:1489
17431747
msgid ""
17441748
"A freed key becomes a dangling pointer, you should reset the key to `NULL`."
17451749
msgstr ""
17461750

1747-
#: ../../c-api/init.rst:1489
1751+
#: ../../c-api/init.rst:1494
17481752
msgid "Methods"
17491753
msgstr ""
17501754

1751-
#: ../../c-api/init.rst:1491
1755+
#: ../../c-api/init.rst:1496
17521756
msgid ""
17531757
"The parameter *key* of these functions must not be *NULL*. Moreover, the "
17541758
"behaviors of :c:func:`PyThread_tss_set` and :c:func:`PyThread_tss_get` are "
17551759
"undefined if the given :c:type:`Py_tss_t` has not been initialized by "
17561760
":c:func:`PyThread_tss_create`."
17571761
msgstr ""
17581762

1759-
#: ../../c-api/init.rst:1499
1763+
#: ../../c-api/init.rst:1504
17601764
msgid ""
17611765
"Return a non-zero value if the given :c:type:`Py_tss_t` has been initialized"
17621766
" by :c:func:`PyThread_tss_create`."
17631767
msgstr ""
17641768

1765-
#: ../../c-api/init.rst:1505
1769+
#: ../../c-api/init.rst:1510
17661770
msgid ""
17671771
"Return a zero value on successful initialization of a TSS key. The behavior"
17681772
" is undefined if the value pointed to by the *key* argument is not "
@@ -1771,7 +1775,7 @@ msgid ""
17711775
"no-op and immediately returns success."
17721776
msgstr ""
17731777

1774-
#: ../../c-api/init.rst:1514
1778+
#: ../../c-api/init.rst:1519
17751779
msgid ""
17761780
"Destroy a TSS key to forget the values associated with the key across all "
17771781
"threads, and change the key's initialization state to uninitialized. A "
@@ -1780,31 +1784,31 @@ msgid ""
17801784
" same key -- calling it on an already destroyed key is a no-op."
17811785
msgstr ""
17821786

1783-
#: ../../c-api/init.rst:1523
1787+
#: ../../c-api/init.rst:1528
17841788
msgid ""
17851789
"Return a zero value to indicate successfully associating a :c:type:`void\\*`"
17861790
" value with a TSS key in the current thread. Each thread has a distinct "
17871791
"mapping of the key to a :c:type:`void\\*` value."
17881792
msgstr ""
17891793

1790-
#: ../../c-api/init.rst:1530
1794+
#: ../../c-api/init.rst:1535
17911795
msgid ""
17921796
"Return the :c:type:`void\\*` value associated with a TSS key in the current "
17931797
"thread. This returns *NULL* if no value is associated with the key in the "
17941798
"current thread."
17951799
msgstr ""
17961800

1797-
#: ../../c-api/init.rst:1538
1801+
#: ../../c-api/init.rst:1543
17981802
msgid "Thread Local Storage (TLS) API"
17991803
msgstr ""
18001804

1801-
#: ../../c-api/init.rst:1540
1805+
#: ../../c-api/init.rst:1545
18021806
msgid ""
18031807
"This API is superseded by :ref:`Thread Specific Storage (TSS) API <thread-"
18041808
"specific-storage-api>`."
18051809
msgstr ""
18061810

1807-
#: ../../c-api/init.rst:1545
1811+
#: ../../c-api/init.rst:1550
18081812
msgid ""
18091813
"This version of the API does not support platforms where the native TLS key "
18101814
"is defined in a way that cannot be safely cast to ``int``. On such "
@@ -1813,7 +1817,7 @@ msgid ""
18131817
"platforms."
18141818
msgstr ""
18151819

1816-
#: ../../c-api/init.rst:1550
1820+
#: ../../c-api/init.rst:1555
18171821
msgid ""
18181822
"Due to the compatibility problem noted above, this version of the API should"
18191823
" not be used in new code."

0 commit comments

Comments
 (0)