@@ -1128,6 +1128,8 @@ msgid ""
11281128":c:member:`PyConfig.argv` and :c:member:`PyConfig.parse_argv` should be used"
11291129" instead, see :ref:`Python Initialization Configuration <init-config>`."
11301130msgstr ""
1131+ "此 API 仅为向下兼容而保留:应当改为设置 :c:member:`PyConfig.argv` 并改用 "
1132+ ":c:member:`PyConfig.parse_argv`,参见 :ref:`Python 初始化配置 <init-config>`。"
11311133
11321134#: ../../c-api/init.rst:785
11331135msgid ""
@@ -1595,13 +1597,16 @@ msgid ""
15951597"Raises an :ref:`auditing event <auditing>` "
15961598"``cpython.PyInterpreterState_Clear`` with no arguments."
15971599msgstr ""
1600+ "引发一个 :ref:`审计事件 <auditing>` ``cpython.PyInterpreterState_Clear``,不附带任何参数。"
15981601
15991602#: ../../c-api/init.rst:1234
16001603msgid ""
16011604"Destroy an interpreter state object. The global interpreter lock need not "
16021605"be held. The interpreter state must have been reset with a previous call to"
16031606" :c:func:`PyInterpreterState_Clear`."
16041607msgstr ""
1608+ "销毁解释器状态对象。 不需要持有全局解释器锁。 解释器状态必须使用之前对 :c:func:`PyInterpreterState_Clear` "
1609+ "的调用来重置。"
16051610
16061611#: ../../c-api/init.rst:1241
16071612msgid ""
@@ -1614,20 +1619,23 @@ msgstr "创建属于给定解释器对象的新线程状态对象。全局解释
16141619msgid ""
16151620"Reset all information in a thread state object. The global interpreter lock"
16161621" must be held."
1617- msgstr ""
1622+ msgstr "重置线程状态对象中的所有信息。 必须持有全局解释器锁。 "
16181623
16191624#: ../../c-api/init.rst:1251
16201625msgid ""
16211626"This function now calls the :c:member:`PyThreadState.on_delete` callback. "
16221627"Previously, that happened in :c:func:`PyThreadState_Delete`."
16231628msgstr ""
1629+ "此函数现在会调用 :c:member:`PyThreadState.on_delete` 回调。 在之前版本中,此操作是发生在 "
1630+ ":c:func:`PyThreadState_Delete` 中的。"
16241631
16251632#: ../../c-api/init.rst:1258
16261633msgid ""
16271634"Destroy a thread state object. The global interpreter lock need not be "
16281635"held. The thread state must have been reset with a previous call to "
16291636":c:func:`PyThreadState_Clear`."
16301637msgstr ""
1638+ "销毁线程状态对象。 不需要持有全局解释器锁。 线程状态必须使用之前对 :c:func:`PyThreadState_Clear` 的调用来重置。"
16311639
16321640#: ../../c-api/init.rst:1265
16331641msgid ""
@@ -1636,25 +1644,27 @@ msgid ""
16361644" held. The thread state must have been reset with a previous call to "
16371645":c:func:`PyThreadState_Clear`."
16381646msgstr ""
1647+ "销毁当前线程状态并释放全局解释器锁。 与 :c:func:`PyThreadState_Delete` 类似,不需要持有全局解释器锁。 "
1648+ "线程状态必须已使用之前对 :c:func:`PyThreadState_Clear` 调用来重置。"
16391649
16401650#: ../../c-api/init.rst:1273
16411651msgid "Get the current frame of the Python thread state *tstate*."
1642- msgstr ""
1652+ msgstr "获取 Python 线程状态 *tstate* 的当前帧。 "
16431653
16441654#: ../../c-api/init.rst:1275
16451655msgid ""
16461656"Return a :term:`strong reference`. Return ``NULL`` if no frame is currently "
16471657"executing."
1648- msgstr ""
1658+ msgstr "返回一个 :term:`strong reference`。 如果没有当前执行的帧则返回 ``NULL``。 "
16491659
16501660#: ../../c-api/init.rst:1278
16511661msgid "See also :c:func:`PyEval_GetFrame`."
1652- msgstr ""
1662+ msgstr "另请参阅 :c:func:`PyEval_GetFrame`。 "
16531663
16541664#: ../../c-api/init.rst:1280 ../../c-api/init.rst:1289
16551665#: ../../c-api/init.rst:1298
16561666msgid "*tstate* must not be ``NULL``."
1657- msgstr ""
1667+ msgstr "*tstate* 必须不为 ``NULL``。 "
16581668
16591669#: ../../c-api/init.rst:1287
16601670msgid ""
0 commit comments