10000 [po] auto sync · python/python-docs-zh-cn@63e3f16 · GitHub
[go: up one dir, main page]

Skip to content

Commit 63e3f16

Browse files
[po] auto sync
1 parent c45717a commit 63e3f16

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "90.03%", "updated_at": "2024-01-26T09:09:34Z"}
1+
{"translation": "90.04%", "updated_at": "2024-01-26T16:09:21Z"}

c-api/init.po

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,12 +1243,16 @@ msgid ""
12431243
"each unique call to :c:func:`PyGILState_Ensure` must save the handle for its"
12441244
" call to :c:func:`PyGILState_Release`."
12451245
msgstr ""
1246+
"返回值是一个当 :c:func:`PyGILState_Ensure` 被调用时的线程状态的不透明“句柄”,并且必须被传递给 "
1247+
":c:func:`PyGILState_Release` 以确保 Python 处于相同状态。 虽然允许递归调用,但这些句柄 *不能* 被共享 —— "
1248+
"每次对 :c:func:`PyGILState_Ensure` 的单独调用都必须保存其对 :c:func:`PyGILState_Release` "
1249+
"的调用的句柄。"
12461250

12471251
#: ../../c-api/init.rst:930
12481252
msgid ""
12491253
"When the function returns, the current thread will hold the GIL and be able "
12501254
"to call arbitrary Python code. Failure is a fatal error."
1251-
msgstr ""
1255+
msgstr "当该函数返回时,当前线程将持有 GIL 并能够调用任意 Python 代码。 执行失败将导致致命级错误。"
12521256

12531257
#: ../../c-api/init.rst:942
12541258
msgid ""
@@ -1257,6 +1261,8 @@ msgid ""
12571261
":c:func:`PyGILState_Ensure` call (but generally this state will be unknown "
12581262
"to the caller, hence the use of the GILState API)."
12591263
msgstr ""
1264+
"释放之前获取的任何资源。 在此调用之后,Python 的状态将与其在对相应 :c:func:`PyGILState_Ensure` "
1265+
"调用之前的一样(但是通常此状态对调用方来说将是未知的,对 GILState API 的使用也是如此)。"
12601266

12611267
#: ../../c-api/init.rst:947
12621268
msgid ""

0 commit comments

Comments
 (0)
0