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

Skip to content

Commit 7bc1031

Browse files
[po] auto sync
1 parent ae924bb commit 7bc1031

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "90.67%", "updated_at": "2024-01-26T07:20:43Z"}
1+
{"translation": "90.67%", "updated_at": "2024-01-26T09:22:22Z"}

c-api/init.po

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ msgstr "交换当前线程状态与由参数 *tstate* (可能为 ``NULL``) 给
12261226
msgid ""
12271227
"The following functions use thread-local storage, and are not compatible "
12281228
"with sub-interpreters:"
1229-
msgstr ""
1229+
msgstr "下列函数使用线程级本地存储,并且不能兼容子解释器:"
12301230

12311231
#: ../../c-api/init.rst:917
12321232
msgid ""
@@ -1240,6 +1240,11 @@ msgid ""
12401240
"the :c:macro:`Py_BEGIN_ALLOW_THREADS` and :c:macro:`Py_END_ALLOW_THREADS` "
12411241
"macros is acceptable."
12421242
msgstr ""
1243+
"确保当前线程已准备好调用 Python C API 而不管 Python 或全局解释器锁的当前状态如何。 只要每次调用都与 "
1244+
":c:func:`PyGILState_Release` 的调用相匹配就可以通过线程调用此函数任意多次。 一般来说,只要线程状态恢复到 "
1245+
"Release() 之前的状态就可以在 :c:func:`PyGILState_Ensure` 和 "
1246+
":c:func:`PyGILState_Release` 调用之间使用其他与线程相关的 API。 例如,可以正常使用 "
1247+
":c:macro:`Py_BEGIN_ALLOW_THREADS` 和 :c:macro:`Py_END_ALLOW_THREADS` 宏。"
12431248

12441249
#: ../../c-api/init.rst:927
12451250
msgid ""

0 commit comments

Comments
 (0)