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

Skip to content

Commit e6e60a3

Browse files
[po] auto sync
1 parent 9860224 commit e6e60a3

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "93.29%", "updated_at": "2024-01-27T09:55:52Z"}
1+
{"translation": "93.31%", "updated_at": "2024-01-27T11:55:59Z"}

c-api/structures.po

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,8 @@ msgid ""
681681
"class using negative :c:member:`~PyType_Spec.basicsize`. It is mandatory in "
682682
"that case."
683683
msgstr ""
684+
"只能在使用负的 :c:member:`~PyType_Spec.basicsize` 创建类时被用作 :c:member:`Py_tp_members "
685+
"<PyTypeObject.tp_members>` :c:type:`槽位 <PyType_Slot>` 的组成部分。 它在此种情况下是强制要求。"
684686

685687
#: ../../c-api/structures.rst:558
686688
msgid ""
@@ -689,6 +691,9 @@ msgid ""
689691
" and sets :c:member:`PyMemberDef.offset` to the offset from the ``PyObject``"
690692
" struct."
691693
msgstr ""
694+
"这个旗标只能在 :c:type:`PyType_Slot` 中使用。 在类创建期间设置 "
695+
":c:member:`~PyTypeObject.tp_members` 时,Python 会清除它并将 "
696+
":c:member:`PyMemberDef.offset` 设为相对于 ``PyObject`` 结构体的偏移量。"
692697

693698
#: ../../c-api/structures.rst:570
694699
msgid ""
@@ -921,7 +926,7 @@ msgstr "用于获取属性的 C 函数。"
921926
msgid ""
922927
"Optional C function to set or delete the attribute. If ``NULL``, the "
923928
"attribute is read-only."
924-
msgstr ""
929+
msgstr "可选的用于设置或删除属性的 C 函数。 如为 ``NULL``,则属性将是只读的。"
925930

926931
#: ../../c-api/structures.rst:701
927932
msgid "optional docstring"
@@ -936,7 +941,7 @@ msgstr "可选的函数指针,为 getter 和 setter 提供附加数据。"
936941
msgid ""
937942
"The ``get`` function takes one :c:expr:`PyObject*` parameter (the instance) "
938943
"and a function pointer (the associated ``closure``):"
939-
msgstr ""
944+
msgstr "``get`` 函数接受一个 :c:expr:`PyObject*` 形参 (实例) 和一个函数指针 (关联的 ``closure``):"
940945

941946
#: ../../c-api/structures.rst:712
942947
msgid ""
@@ -949,6 +954,7 @@ msgid ""
949954
"``set`` functions take two :c:expr:`PyObject*` parameters (the instance and "
950955
"the value to be set) and a function pointer (the associated ``closure``):"
951956
msgstr ""
957+
"``set`` 函数接受两个 :c:expr:`PyObject*` 形参 (实例和要设置的值) 和一个函数指针 (关联的 ``closure``):"
952958

953959
#: ../../c-api/structures.rst:720
954960
msgid ""

library/concurrent.futures.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ msgid ""
261261
":class:`threading.Thread` names for worker threads created by the pool for "
262262
"easier debugging."
263263
msgstr ""
264+
"增加了 *thread_name_prefix* 形参来允许用户控制由线程池创建的 :class:`threading.Thread` "
265+
"工作线程名称以方便调试。"
264266

265267
#: ../../library/concurrent.futures.rst:179
266268
#: ../../library/concurrent.futures.rst:283
@@ -377,6 +379,8 @@ msgid ""
377379
"Previously, behaviour was undefined but operations on the executor or its "
378380
"futures would often freeze or deadlock."
379381
msgstr ""
382+
"当某个工作进程突然终止时,现在将引发 :exc:`~concurrent.futures.process.BrokenProcessPool`。 "
383+
"在之前版本中,它的行为是未定义的但在执行器上的操作或它的 future 对象往往会被冻结或死锁。"
380384

381385
#: ../../library/concurrent.futures.rst:279
382386
msgid ""
@@ -721,6 +725,8 @@ msgid ""
721725
" is raised when one of the workers of a "
722726
":class:`~concurrent.futures.ThreadPoolExecutor` has failed initializing."
723727
msgstr ""
728+
"派生自 :exc:`~concurrent.futures.BrokenExecutor`,这个异常类会在 "
729+
":class:`~concurrent.futures.ThreadPoolExecutor` 的某个工作线程初始化失败时被引发。"
724730

725731
#: ../../library/concurrent.futures.rst:575
726732
msgid ""
@@ -729,3 +735,7 @@ msgid ""
729735
" of a :class:`~concurrent.futures.ProcessPoolExecutor` has terminated in a "
730736
"non-clean fashion (for example, if it was killed from the outside)."
731737
msgstr ""
738+
"派生自 :exc:`~concurrent.futures.BrokenExecutor` (原为 "
739+
":exc:`RuntimeError`),这个异常类会在 "
740+
":class:`~concurrent.futures.ProcessPoolExecutor` "
741+
"的某个工作进程以不完整的方式终结(例如,从外部杀掉)时被引发。"

0 commit comments

Comments
 (0)