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

Skip to content

Commit cd40497

Browse files
[po] auto sync
1 parent 1980edb commit cd40497

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.66%", "updated_at": "2024-01-25T14:23:38Z"}
1+
{"translation": "90.66%", "updated_at": "2024-01-26T03:22:50Z"}

c-api/init.po

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,11 @@ msgid ""
10991099
"originally initialized. The only exception is if :c:func:`exec` will be "
11001100
"called immediately after."
11011101
msgstr ""
1102+
"所有其他线程都将结束这一事实也意味着 CPython 的运行时状态必须妥善清理,:func:`os.fork` 就是这样做的。 "
1103+
"这意味着最终化归属于当前解释器的所有其他 :c:type:`PyThreadState` 对象以及所有其他 "
1104+
":c:type:`PyInterpreterState` 对象。 由于这一点以及 :ref:`\"main\" 解释器 <sub-"
1105+
"interpreter-support>` 的特殊性质,:c:func:`fork` 应当只在该解释器 的 \"main\" 线程中被调用,而 "
1106+
"CPython 全局运行时最初就是在该线程中初始化的。 只有当 :c:func:`exec` 将随后立即被调用的情况是唯一的例外。"
11021107

11031108
#: ../../c-api/init.rst:812
11041109
msgid "High-level API"
@@ -1116,7 +1121,7 @@ msgid ""
11161121
"threads. Threads belonging to the same interpreter share their module "
11171122
"administration and a few other internal items. There are no public members "
11181123
"in this structure."
1119-
msgstr ""
1124+
msgstr "该数据结构代表多个合作线程所共享的状态。 属于同一解释器的线程将共享其模块管理以及其他一些内部条目。 该结构体中不包含公有成员。"
11201125

11211126
#: ../../c-api/init.rst:824
11221127
msgid ""
@@ -1125,6 +1130,7 @@ msgid ""
11251130
"global interpreter lock is also shared by all threads, regardless of to "
11261131
"which interpreter they belong."
11271132
msgstr ""
1133+
"最初归属于不同解释器的线程不会共享任何东西,但进程状态如可用内存、打开的文件描述符等等除外。 全局解释器锁也会被所有线程共享,无论它们归属于哪个解释器。"
11281134

11291135
#: ../../c-api/init.rst:832
11301136
msgid ""

0 commit comments

Comments
 (0)