File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
- {"translation" : " 90.01 %" , "updated_at" : " 2024-01-25T14 :09:14Z " }
1
+ {"translation" : " 90.02 %" , "updated_at" : " 2024-01-26T03 :09:45Z " }
Original file line number Diff line number Diff line change @@ -1087,6 +1087,11 @@ msgid ""
1087
1087
"originally initialized. The only exception is if :c:func:`exec` will be "
1088
1088
"called immediately after."
1089
1089
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` 将随后立即被调用的情况是唯一的例外。"
1090
1095
1091
1096
#: ../../c-api/init.rst:812
1092
1097
msgid "High-level API"
@@ -1104,7 +1109,7 @@ msgid ""
1104
1109
"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 "
1106
1111
"in this structure."
1107
- msgstr ""
1112
+ msgstr "该数据结构代表多个合作线程所共享的状态。 属于同一解释器的线程将共享其模块管理以及其他一些内部条目。 该结构体中不包含公有成员。 "
1108
1113
1109
1114
#: ../../c-api/init.rst:824
1110
1115
msgid ""
@@ -1113,6 +1118,7 @@ msgid ""
1113
1118
"global interpreter lock is also shared by all threads, regardless of to "
1114
1119
"which interpreter they belong."
1115
1120
msgstr ""
1121
+ "最初归属于不同解释器的线程不会共享任何东西,但进程状态如可用内存、打开的文件描述符等等除外。 全局解释器锁也会被所有线程共享,无论它们归属于哪个解释器。"
1116
1122
1117
1123
#: ../../c-api/init.rst:832
1118
1124
msgid ""
You can’t perform that action at this time.
0 commit comments