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

Skip to content

Commit 93cdf4d

Browse files
[po] auto sync
1 parent e1b45f6 commit 93cdf4d

3 files changed

Lines changed: 36 additions & 30 deletions

File tree

c-api/call.po

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ msgstr ""
6565
msgid ""
6666
"To call an object, use :c:func:`PyObject_Call` or other :ref:`call API "
6767
"<capi-call>`."
68-
msgstr ""
68+
msgstr "使用 :c:func:`PyObject_Call` 或其他 :ref:`调用 API <capi-call>` 来调用一个对象。"
6969

7070
#: ../../c-api/call.rst:36
7171
msgid "The Vectorcall Protocol"
@@ -75,7 +75,7 @@ msgstr "Vectorcall 协议"
7575
msgid ""
7676
"The vectorcall protocol was introduced in :pep:`590` as an additional "
7777
"protocol for making calls more efficient."
78-
msgstr ""
78+
msgstr "vectorcall 协议是在 :pep:`590` 被引入的,它是使调用函数更加有效的附加协议。"
7979

8080
#: ../../c-api/call.rst:43
8181
msgid ""
@@ -120,17 +120,17 @@ msgstr "*callable* 是指被调用的对象。"
120120
#: ../../c-api/call.rst:75
121121
msgid ""
122122
"*args* is a C array consisting of the positional arguments followed by the"
123-
msgstr ""
123+
msgstr "*args* 是一个C语言数组,由位置参数和后面的"
124124

125125
#: ../../c-api/call.rst:75
126126
msgid ""
127127
"values of the keyword arguments. This can be *NULL* if there are no "
128128
"arguments."
129-
msgstr ""
129+
msgstr "关键字参数的值。如果没有参数,这个值可以是 *NULL* 。"
130130

131131
#: ../../c-api/call.rst:79
132132
msgid "*nargsf* is the number of positional arguments plus possibly the"
133-
msgstr ""
133+
msgstr "*nargsf* 是位置参数的数量加上可能的"
134134

135135
#: ../../c-api/call.rst:78
136136
msgid ""
@@ -140,7 +140,7 @@ msgstr ""
140140

141141
#: ../../c-api/call.rst:85
142142
msgid "*kwnames* is a tuple containing the names of the keyword arguments;"
143-
msgstr ""
143+
msgstr "*kwnames* 是一包含所有关键字名称的元组。"
144144

145145
#: ../../c-api/call.rst:82
146146
msgid ""
@@ -161,7 +161,7 @@ msgstr ""
161161
msgid ""
162162
"For :c:func:`PyObject_VectorcallMethod`, this flag means instead that "
163163
"``args[0]`` may be changed."
164-
msgstr ""
164+
msgstr "对于 :c:func:`PyObject_VectorcallMethod` ,这个标志的改变意味着``args[0]`` 可能改变了。"
165165

166166
#: ../../c-api/call.rst:97
167167
msgid ""
@@ -200,6 +200,8 @@ msgid ""
200200
"<recursion>`: CPython uses :c:func:`Py_EnterRecursiveCall` and "
201201
":c:func:`Py_LeaveRecursiveCall` for calls made using *tp_call*."
202202
msgstr ""
203+
"在使用 *tp_call* 时,被调用者不必担心 :ref:`递归 <recursion>`: CPython 对于使用 *tp_call* "
204+
"进行的调用会使用 :c:func:`Py_EnterRecursiveCall` 和 :c:func:`Py_LeaveRecursiveCall`。"
203205

204206
#: ../../c-api/call.rst:128
205207
msgid ""
@@ -210,7 +212,7 @@ msgstr ""
210212

211213
#: ../../c-api/call.rst:134
212214
msgid "Vectorcall Support API"
213-
msgstr ""
215+
msgstr "Vectorcall 支持 API"
214216

215217
#: ../../c-api/call.rst:138
216218
msgid ""
@@ -222,13 +224,13 @@ msgstr ""
222224
msgid ""
223225
"However, the function ``PyVectorcall_NARGS`` should be used to allow for "
224226
"future extensions."
225-
msgstr ""
227+
msgstr "然而,应使用 ``PyVectorcall_NARGS`` 函数以便将来扩展。"
226228

227229
#: ../../c-api/call.rst:147 ../../c-api/call.rst:161 ../../c-api/call.rst:175
228230
#: ../../c-api/call.rst:259 ../../c-api/call.rst:346 ../../c-api/call.rst:360
229231
#: ../../c-api/call.rst:375 ../../c-api/call.rst:391 ../../c-api/call.rst:413
230232
msgid "This function is not part of the :ref:`limited API <stable>`."
231-
msgstr ""
233+
msgstr "这个函数不是 :ref:`limited API <stable>` 的一部分。"
232234

233235
#: ../../c-api/call.rst:153
234236
msgid ""
@@ -274,7 +276,7 @@ msgstr ""
274276
msgid ""
275277
"The following table summarizes the available functions; please see "
276278
"individual documentation for details."
277-
msgstr ""
279+
msgstr "下表总结了可用的功能; 请参阅各个文档以了解详细信息。"
278280

279281
#: ../../c-api/call.rst:195
280282
msgid "Function"
@@ -294,36 +296,36 @@ msgstr "kwargs"
294296

295297
#: ../../c-api/call.rst:197
296298
msgid ":c:func:`PyObject_Call`"
297-
msgstr ""
299+
msgstr ":c:func:`PyObject_Call`"
298300

299301
#: ../../c-api/call.rst:197 ../../c-api/call.rst:199 ../../c-api/call.rst:201
300302
#: ../../c-api/call.rst:203 ../../c-api/call.rst:205 ../../c-api/call.rst:209
301303
#: ../../c-api/call.rst:217 ../../c-api/call.rst:219
302304
msgid "``PyObject *``"
303-
msgstr ""
305+
msgstr "``PyObject *``"
304306

305307
#: ../../c-api/call.rst:197
306308
msgid "tuple"
307309
msgstr "元组"
308310

309311
#: ../../c-api/call.rst:197 ../../c-api/call.rst:219
310312
msgid "dict/``NULL``"
311-
msgstr ""
313+
msgstr "dict/``NULL``"
312314

313315
#: ../../c-api/call.rst:199
314316
msgid ":c:func:`PyObject_CallNoArgs`"
315-
msgstr ""
317+
msgstr ":c:func:`PyObject_CallNoArgs`"
316318

317319
#: ../../c-api/call.rst:199 ../../c-api/call.rst:199 ../../c-api/call.rst:201
318320
#: ../../c-api/call.rst:203 ../../c-api/call.rst:205 ../../c-api/call.rst:207
319321
#: ../../c-api/call.rst:209 ../../c-api/call.rst:211 ../../c-api/call.rst:213
320322
#: ../../c-api/call.rst:213 ../../c-api/call.rst:215
321323
msgid "---"
322-
msgstr ""
324+
msgstr "---"
323325

324326
#: ../../c-api/call.rst:201
325327
msgid ":c:func:`PyObject_CallOneArg`"
326-
msgstr ""
328+
msgstr ":c:func:`PyObject_CallOneArg`"
327329

328330
#: ../../c-api/call.rst:201 ../../c-api/call.rst:215
329331
msgid "1 object"
@@ -384,7 +386,7 @@ msgstr ":c:func:`PyObject_Vectorcall`"
384386
#: ../../c-api/call.rst:217 ../../c-api/call.rst:217 ../../c-api/call.rst:219
385387
#: ../../c-api/call.rst:221 ../../c-api/call.rst:221
386388
msgid "vectorcall"
387-
msgstr ""
389+
msgstr "vectorcall"
388390

389391
#: ../../c-api/call.rst:219
390392
msgid ":c:func:`PyObject_VectorcallDict`"
@@ -423,7 +425,7 @@ msgstr "成功时返回结果,在失败时抛出一个异常并返回 *NULL*
423425
msgid ""
424426
"This is the equivalent of the Python expression: ``callable(*args, "
425427
"**kwargs)``."
426-
msgstr ""
428+
msgstr "这等价于 Python 表达式 ``callable(*args, **kwargs)``。"
427429

428430
#: ../../c-api/call.rst:242
429431
msgid ""
@@ -463,7 +465,7 @@ msgstr ""
463465

464466
#: ../../c-api/call.rst:289
465467
msgid "The type of *format* was changed from ``char *``."
466-
msgstr ""
468+
msgstr "这个 *format* 类型已从 ``char *`` 更改。"
467469

468470
#: ../../c-api/call.rst:295
469471
msgid ""
@@ -474,13 +476,13 @@ msgstr ""
474476

475477
#: ../../c-api/call.rst:299
476478
msgid "The format can be *NULL*, indicating that no arguments are provided."
477-
msgstr ""
479+
msgstr "格式可以为 *NULL* ,表示未提供任何参数。"
478480

479481
#: ../../c-api/call.rst:304
480482
msgid ""
481483
"This is the equivalent of the Python expression: ``obj.name(arg1, arg2, "
482484
"...)``."
483-
msgstr ""
485+
msgstr "这和Python表达式``obj.name(arg1, arg2, ...)``是一样的。"
484486

485487
#: ../../c-api/call.rst:307
486488
msgid ""
@@ -490,7 +492,7 @@ msgstr ""
490492

491493
#: ../../c-api/call.rst:310
492494
msgid "The types of *name* and *format* were changed from ``char *``."
493-
msgstr ""
495+
msgstr " *name* 和 *format* 类型已从 ``char *`` 更改。"
494496

495497
#: ../../c-api/call.rst:316
496498
msgid ""
@@ -575,4 +577,4 @@ msgstr "调用支持 API"
575577
msgid ""
576578
"Determine if the object *o* is callable. Return ``1`` if the object is "
577579
"callable and ``0`` otherwise. This function always succeeds."
578-
msgstr ""
580+
msgstr "确定对象 *o* 是可调对象。如果对象是可调对象则返回 ``1`` ,其他情况返回 ``0`` 。这个函数不会调用失败。"

c-api/exceptions.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,8 @@ msgid ""
629629
":data:`signal.SIG_DFL` or :data:`signal.SIG_IGN`), this function does "
630630
"nothing."
631631
msgstr ""
632+
"如果 Python 没有处理 :const:`signal.SIGINT` (将它设为 :data:`signal.SIG_DFL` 或 "
633+
":data:`signal.SIG_IGN`),此函数将不做任何事。"
632634

633635
#: ../../c-api/exceptions.rst:534
634636
msgid ""
@@ -678,6 +680,8 @@ msgid ""
678680
"can easily be given a docstring: If *doc* is non-``NULL``, it will be used "
679681
"as the docstring for the exception class."
680682
msgstr ""
683+
"和 :c:func:`PyErr_NewException` 一样,除了可以轻松地给新的异常类一个文档字符串:如果 *doc* "
684+
"属性非空,它将用作异常类的文档字符串。"
681685

682686
#: ../../c-api/exceptions.rst:575
683687
msgid "Exception Objects"

library/logging.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -966,15 +966,15 @@ msgid ""
966966
"setting, unless the filter has also been applied to those descendant "
967967
"loggers."
968968
msgstr ""
969-
"请注意关联到处理程序的过滤器会在事件由处理程序发出之前被查询,而关联到日志记录器的过滤器则会在有事件被记录的的任何时候(使用 "
970-
":meth:`debug`, :meth:`info` 等等)在将事件发送给处理程序之前被查询。 "
971-
"这意味着由后代日志记录器生成的事件将不会被日志记录器的过滤器设置所过滤,除非该过滤器也已被应用于后代日志记录器。"
969+
"请注意关联到处理器的过滤器会在事件由处理器发出之前被查询,而关联到日志记录器的过滤器则会在有事件被记录的的任何时候(使用 :meth:`debug`, "
970+
":meth:`info` 等等)在将事件发送给处理器之前被查询。 "
971+
"这意味着由后代日志记录器生成的事件将不会被父代日志记录器的过滤器设置所过滤,除非该过滤器也已被应用于后代日志记录器。"
972972

973973
#: ../../library/logging.rst:660
974974
msgid ""
975975
"You don't actually need to subclass ``Filter``: you can pass any instance "
976976
"which has a ``filter`` method with the same semantics."
977-
msgstr "你实际上不需要子类化 ``Filter``: 你可以将传入任何包含 ``filter`` 方法的具有相同语义的的实例。"
977+
msgstr "你实际上不需要子类化 ``Filter`` :你可以传入任何一个包含有相同语义的 ``filter`` 方法的实例。"
978978

979979
#: ../../library/logging.rst:663
980980
msgid ""
@@ -987,8 +987,8 @@ msgid ""
987987
"value should conform to that returned by :meth:`~Filter.filter`."
988988
msgstr ""
989989
"你不需要创建专门的 ``Filter`` 类,或使用具有 ``filter`` 方法的其他类:你可以使用一个函数(或其他可调用对象)作为过滤器。 "
990-
"过滤逻辑将检查过滤器对象是否文化的 ``filter`` 属性:如果有,就会将它当作是 ``Filter`` 并调用它的 "
991-
":meth:`~Filter.filter` 方法。 在其他情况下,则会将它当作是可调用对象并附带记录作为单一形参进行调用。 返回值应当与 "
990+
"过滤逻辑将检查过滤器对象是否具有 ``filter`` 属性:如果有,就会将它当作是 ``Filter`` 并调用它的 "
991+
":meth:`~Filter.filter` 方法。 在其他情况下,则会将它当作是可调用对象并将记录作为唯一的形参进行调用。 返回值应当与 "
992992
":meth:`~Filter.filter` 的返回值相一致。"
993993

994994
#: ../../library/logging.rst:673

0 commit comments

Comments
 (0)