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

Skip to content
8000

Commit 2252671

Browse files
[po] auto sync
1 parent 40d8ebd commit 2252671

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.01%", "updated_at": "2024-01-25T14:09:14Z"}
1+
{"translation": "90.02%", "updated_at": "2024-01-26T03:09:45Z"}

c-api/init.po

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

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

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

11171123
#: ../../c-api/init.rst:832
11181124
msgid ""

0 commit comments

Comments
 (0)
0