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

Skip to content

Commit 3669e42

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

2 files changed

Lines changed: 8 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-26T09:22:22Z"}
1+
{"translation": "90.68%", "updated_at": "2024-01-26T15:22:14Z"}

c-api/init.po

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

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

12651269
#: ../../c-api/init.rst:946
12661270
msgid ""
@@ -1269,6 +1273,8 @@ msgid ""
12691273
":c:func:`PyGILState_Ensure` call (but generally this state will be unknown "
12701274
"to the caller, hence the use of the GILState API)."
12711275
msgstr ""
1276+
"释放之前获取的任何资源。 在此调用之后,Python 的状态将与其在对相应 :c:func:`PyGILState_Ensure` "
1277+
"调用之前的一样(但是通常此状态对调用方来说将是未知的,对 GILState API 的使用也是如此)。"
12721278

12731279
#: ../../c-api/init.rst:951
12741280
msgid ""

0 commit comments

Comments
 (0)