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

Skip to content

Commit ff8abe0

Browse files
[po] auto sync
1 parent cc417fa commit ff8abe0

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "93.33%", "updated_at": "2024-01-24T07:55:48Z"}
1+
{"translation": "93.35%", "updated_at": "2024-01-24T15:55:55Z"}

c-api/init.po

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,6 +1903,8 @@ msgid ""
19031903
"same process and perhaps even in the same thread. Sub-interpreters allow you"
19041904
" to do that."
19051905
msgstr ""
1906+
"虽然在大多数用例中,你都只会嵌入一个单独的 Python 解释器,但某些场景需要你在同一个进程甚至同一个线程中创建多个独立的解释器。 "
1907+
"子解释器让你能够做到这一点。"
19061908

19071909
#: ../../c-api/init.rst:1486
19081910
msgid ""
@@ -1914,20 +1916,25 @@ msgid ""
19141916
"runtime finalization. The :c:func:`PyInterpreterState_Main` function "
19151917
"returns a pointer to its state."
19161918
msgstr ""
1919+
"“主”解释器是在运行时初始化时创建的第一个解释器。 它通常是一个进程中唯一的 Python 解释器。 "
1920+
"与子解释器不同,主解释器具有唯一的进程全局责任比如信号处理等。 它还负责在运行时初始化期间的执行并且通常还是运行时最终化期间的活动解释器。 "
1921+
":c:func:`PyInterpreterState_Main` 函数将返回一个指向其状态的指针。"
19171922

19181923
#: ../../c-api/init.rst:1493
19191924
msgid ""
19201925
"You can switch between sub-interpreters using the "
19211926
":c:func:`PyThreadState_Swap` function. You can create and destroy them using"
19221927
" the following functions:"
1923-
msgstr ""
1928+
msgstr "你可以使用 :c:func:`PyThreadState_Swap` 函数在子解释器之间进行切换。 你可以使用下列函数来创建和销毁它们:"
19241929

19251930
#: ../../c-api/init.rst:1499
19261931
msgid ""
19271932
"Structure containing most parameters to configure a sub-interpreter. Its "
19281933
"values are used only in :c:func:`Py_NewInterpreterFromConfig` and never "
19291934
"modified by the runtime."
19301935
msgstr ""
1936+
"包含用于配置子解释器的大部分形参的结构体。 其值仅在 :c:func:`Py_NewInterpreterFromConfig` "
1937+
"中被使用而绝不会被运行时所修改。"
19311938

19321939
#: ../../c-api/init.rst:1505
19331940
msgid "Structure fields:"
@@ -1988,6 +1995,8 @@ msgid ""
19881995
"create daemon threads. Otherwise daemon threads are allowed (as long as "
19891996
":c:member:`~PyInterpreterConfig.allow_threads` is non-zero)."
19901997
msgstr ""
1998+
"如果该值为 ``0`` 则子解释器的 :mod:`threading` 模块将不会创建守护线程。 否则将允许守护线程(只要 "
1999+
":c:member:`~PyInterpreterConfig.allow_threads` 是非零值)。"
19912000

19922001
#: ../../c-api/init.rst:1553
19932002
msgid ""
@@ -1997,26 +2006,30 @@ msgid ""
19972006
":pep:`489`) may be imported. (Also see "
19982007
":c:macro:`Py_mod_multiple_interpreters`.)"
19992008
msgstr ""
2009+
"如果该值为 ``0`` 则所有扩展模块均可在当前子解释器被激活的任何线程中被导入,包括旧式的 (单阶段初始化) 模块。 否则将只有多阶段初始化扩展模块 "
2010+
"(参见 :pep:`489`) 可以被导入。 (另请参阅 :c:macro:`Py_mod_multiple_interpreters`。)"
20002011

20012012
#: ../../c-api/init.rst:1560
20022013
msgid ""
20032014
"This must be ``1`` (non-zero) if "
20042015
":c:member:`~PyInterpreterConfig.use_main_obmalloc` is ``0``."
20052016
msgstr ""
2017+
"如果 :c:member:`~PyInterpreterConfig.use_main_obmalloc` 为 ``0`` 则该值必须为 ``1`` "
2018+
"(非零值)。"
20062019

20072020
#: ../../c-api/init.rst:1565
20082021
msgid ""
20092022
"This determines the operation of the GIL for the sub-interpreter. It may be "
20102023
"one of the following:"
2011-
msgstr ""
2024+
msgstr "这将确定针对子解释器的 GIL 操作方式。 它可以是以下的几种之一:"
20122025

20132026
#: ../../c-api/init.rst:1572
20142027
msgid "Use the default selection (:c:macro:`PyInterpreterConfig_SHARED_GIL`)."
2015-
msgstr ""
2028+
msgstr "使用默认选择 (:c:macro:`PyInterpreterConfig_SHARED_GIL`)。"
20162029

20172030
#: ../../c-api/init.rst:1576
20182031
msgid "Use (share) the main interpreter's GIL."
2019-
msgstr ""
2032+
msgstr "使用(共享)主解释器的 GIL。"
20202033

20212034
#: ../../c-api/init.rst:1580
20222035
msgid "Use the sub-interpreter's own GIL."

0 commit comments

Comments
 (0)