File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"translation" : " 90.69 %" , "updated_at" : " 2024-01-27T05:22:22Z " }
1+ {"translation" : " 90.70 %" , "updated_at" : " 2024-01-27T09:20:40Z " }
Original file line number Diff line number Diff line change @@ -1535,6 +1535,8 @@ msgid ""
15351535"state is available. If this function returns ``NULL``, no exception has been"
15361536" raised and the caller should assume no current thread state is available."
15371537msgstr ""
1538+ "返回一个扩展可以在其中存储线程专属状态信息的字典。 每个扩展都应当使用一个独有的键用来在该字典中存储状态。 在没有可用的当前线程状态时也可以调用此函数。"
1539+ " 如果此函数返回 ``NULL``,则还没有任何异常被引发并且调用方应当假定没有可用的当前线程状态。"
15381540
15391541#: ../../c-api/init.rst:1178
15401542msgid ""
@@ -1560,13 +1562,16 @@ msgid ""
15601562"*tstate*, which must not be ``NULL``. The lock must have been created "
15611563"earlier. If this thread already has the lock, deadlock ensues."
15621564msgstr ""
1565+ "获取全局解释器锁并将当前线程状态设为 *tstate*,它必须不为 ``NULL``。 锁必须在此之前已被创建。 如果该线程已获取锁,则会发生死锁。"
15631566
15641567#: ../../c-api/init.rst:1203 ../../c-api/init.rst:1241
15651568msgid ""
15661569"Updated to be consistent with :c:func:`PyEval_RestoreThread`, "
15671570":c:func:`Py_END_ALLOW_THREADS`, and :c:func:`PyGILState_Ensure`, and "
15681571"terminate the current thread if called while the interpreter is finalizing."
15691572msgstr ""
1573+ "已被更新为与 :c:func:`PyEval_RestoreThread`, :c:func:`Py_END_ALLOW_THREADS` 和 "
1574+ ":c:func:`PyGILState_Ensure` 保持一致,如果在解释器正在最终化时被调用则会终结当前线程。"
15701575
15711576#: ../../c-api/init.rst:1208
15721577msgid ""
You can’t perform that action at this time.
0 commit comments