@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
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 ""
16271627msgstr ""
16281628
16291629#: ../../c-api/init.rst:1388
1630+ msgid "Return the main interpreter state object."
1631+ msgstr ""
1632+
1633+ #: ../../c-api/init.rst:1393
16301634msgid ""
16311635"Return the next interpreter state object after *interp* from the list of all"
16321636" such objects."
16331637msgstr ""
16341638
1635- #: ../../c-api/init.rst:1394
1639+ #: ../../c-api/init.rst:1399
16361640msgid ""
16371641"Return the pointer to the first :c:type:`PyThreadState` object in the list "
16381642"of threads associated with the interpreter *interp*."
16391643msgstr ""
16401644
1641- #: ../../c-api/init.rst:1400
1645+ #: ../../c-api/init.rst:1405
16421646msgid ""
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."
16451649msgstr ""
16461650
1647- #: ../../c-api/init.rst:1407
1651+ #: ../../c-api/init.rst:1412
16481652msgid "Thread Local Storage Support"
16491653msgstr ""
16501654
1651- #: ../../c-api/init.rst:1411
1655+ #: ../../c-api/init.rst:1416
16521656msgid ""
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."
16591663msgstr ""
16601664
1661- #: ../../c-api/init.rst:1418
1665+ #: ../../c-api/init.rst:1423
16621666msgid ""
16631667"The GIL does *not* need to be held when calling these functions; they supply"
16641668" their own locking."
16651669msgstr ""
16661670
1667- #: ../../c-api/init.rst:1421
1671+ #: ../../c-api/init.rst:1426
16681672msgid ""
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."
16711675msgstr ""
16721676
1673- #: ../../c-api/init.rst:1425
1677+ #: ../../c-api/init.rst:1430
16741678msgid ""
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."
16801684msgstr ""
16811685
1682- #: ../../c-api/init.rst:1433
1686+ #: ../../c-api/init.rst:1438
16831687msgid "Thread Specific Storage (TSS) API"
16841688msgstr ""
16851689
1686- #: ../../c-api/init.rst:1435
1690+ #: ../../c-api/init.rst:1440
16871691msgid ""
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."
16911695msgstr ""
16921696
1693- #: ../../c-api/init.rst:1441
1697+ #: ../../c-api/init.rst:1446
16941698msgid "\" A New C-API for Thread-Local Storage in CPython\" (:pep:`539`)"
16951699msgstr ""
16961700
1697- #: ../../c-api/init.rst:1446
1701+ #: ../../c-api/init.rst:1451
16981702msgid ""
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."
17031707msgstr ""
17041708
1705- #: ../../c-api/init.rst:1451
1709+ #: ../../c-api/init.rst:1456
17061710msgid ""
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."
17091713msgstr ""
17101714
1711- #: ../../c-api/init.rst:1457
1715+ #: ../../c-api/init.rst:1462
17121716msgid ""
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>`."
17151719msgstr ""
17161720
1717- #: ../../c-api/init.rst:1462
1721+ #: ../../c-api/init.rst:1467
17181722msgid "Dynamic Allocation"
17191723msgstr ""
17201724
1721- #: ../../c-api/init.rst:1464
1725+ #: ../../c-api/init.rst:1469
17221726msgid ""
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."
17261730msgstr ""
17271731
1728- #: ../../c-api/init.rst:1471
1732+ #: ../../c-api/init.rst:1476
17291733msgid ""
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."
17331737msgstr ""
17341738
1735- #: ../../c-api/init.rst:1478
1739+ #: ../../c-api/init.rst:1483
17361740msgid ""
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`."
17401744msgstr ""
17411745
1742- #: ../../c-api/init.rst:1484
1746+ #: ../../c-api/init.rst:1489
17431747msgid ""
17441748"A freed key becomes a dangling pointer, you should reset the key to `NULL`."
17451749msgstr ""
17461750
1747- #: ../../c-api/init.rst:1489
1751+ #: ../../c-api/init.rst:1494
17481752msgid "Methods"
17491753msgstr ""
17501754
1751- #: ../../c-api/init.rst:1491
1755+ #: ../../c-api/init.rst:1496
17521756msgid ""
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`."
17571761msgstr ""
17581762
1759- #: ../../c-api/init.rst:1499
1763+ #: ../../c-api/init.rst:1504
17601764msgid ""
17611765"Return a non-zero value if the given :c:type:`Py_tss_t` has been initialized"
17621766" by :c:func:`PyThread_tss_create`."
17631767msgstr ""
17641768
1765- #: ../../c-api/init.rst:1505
1769+ #: ../../c-api/init.rst:1510
17661770msgid ""
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."
17721776msgstr ""
17731777
1774- #: ../../c-api/init.rst:1514
1778+ #: ../../c-api/init.rst:1519
17751779msgid ""
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."
17811785msgstr ""
17821786
1783- #: ../../c-api/init.rst:1523
1787+ #: ../../c-api/init.rst:1528
17841788msgid ""
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."
17881792msgstr ""
17891793
1790- #: ../../c-api/init.rst:1530
1794+ #: ../../c-api/init.rst:1535
17911795msgid ""
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."
17951799msgstr ""
17961800
1797- #: ../../c-api/init.rst:1538
1801+ #: ../../c-api/init.rst:1543
17981802msgid "Thread Local Storage (TLS) API"
17991803msgstr ""
18001804
1801- #: ../../c-api/init.rst:1540
1805+ #: ../../c-api/init.rst:1545
18021806msgid ""
18031807"This API is superseded by :ref:`Thread Specific Storage (TSS) API <thread-"
18041808"specific-storage-api>`."
18051809msgstr ""
18061810
1807- #: ../../c-api/init.rst:1545
1811+ #: ../../c-api/init.rst:1550
18081812msgid ""
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."
18141818msgstr ""
18151819
1816- #: ../../c-api/init.rst:1550
1820+ #: ../../c-api/init.rst:1555
18171821msgid ""
18181822"Due to the compatibility problem noted above, this version of the API should"
18191823" not be used in new code."
0 commit comments