Skip to content

Commit 6aa9be8

Browse files
sync with cpython fd174d76
1 parent 5ebe7b6 commit 6aa9be8

File tree

9 files changed

+618
-497
lines changed

9 files changed

+618
-497
lines changed

c-api/call.po

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.14\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2024-09-23 07:52+0800\n"
11+
"POT-Creation-Date: 2026-01-15 00:15+0000\n"
1212
"PO-Revision-Date: 2022-10-16 03:20+0800\n"
1313
"Last-Translator: Matt Wang <mattwag44@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -124,9 +124,9 @@ msgid ""
124124
msgstr ""
125125
"當一個類別的 :py:meth:`~object.__call__` 方法被重新賦值時,:c:macro:"
126126
"`Py_TPFLAGS_HAVE_VECTORCALL` 旗標現在會被移除。(這會在內部設定 :c:member:"
127-
"`~PyTypeObject.tp_call`,因此可能會使它與 vectorcall 函式有不同的行為。)"
128-
"在較早的 Python 版本中,vectorcall 應該只與 :c:macro:"
129-
"`immutable <Py_TPFLAGS_IMMUTABLETYPE>` 或靜態型別一起使用。"
127+
"`~PyTypeObject.tp_call`,因此可能會使它與 vectorcall 函式有不同的行為。)在較"
128+
"早的 Python 版本中,vectorcall 應該只與 :c:macro:`immutable "
129+
"<Py_TPFLAGS_IMMUTABLETYPE>` 或靜態型別一起使用。"
130130

131131
#: ../../c-api/call.rst:69
132132
msgid ""
@@ -473,7 +473,7 @@ msgstr ""
473473
#: ../../c-api/call.rst:225 ../../c-api/call.rst:237 ../../c-api/call.rst:248
474474
#: ../../c-api/call.rst:259 ../../c-api/call.rst:271 ../../c-api/call.rst:291
475475
#: ../../c-api/call.rst:310 ../../c-api/call.rst:324 ../../c-api/call.rst:333
476-
#: ../../c-api/call.rst:345 ../../c-api/call.rst:358 ../../c-api/call.rst:392
476+
#: ../../c-api/call.rst:345 ../../c-api/call.rst:360 ../../c-api/call.rst:399
477477
msgid ""
478478
"Return the result of the call on success, or raise an exception and return "
479479
"*NULL* on failure."
@@ -610,7 +610,7 @@ msgstr ""
610610
"附帶一個位置引數 *arg* 地呼叫 Python 物件 *obj* 中的一個 method,其中 method "
611611
"名稱由 *name* 中的 Python 字串物件給定。"
612612

613-
#: ../../c-api/call.rst:353
613+
#: ../../c-api/call.rst:355
614614
msgid ""
615615
"Call a callable Python object *callable*. The arguments are the same as for :"
616616
"c:type:`vectorcallfunc`. If *callable* supports vectorcall_, this directly "
@@ -620,7 +620,18 @@ msgstr ""
620620
"的相同。如果 *callable* 支援 vectorcall_,則它會直接呼叫存放在 *callable* 中"
621621
"的 vectorcall 函式。"
622622

623-
#: ../../c-api/call.rst:365
623+
#: ../../c-api/call.rst:363
624+
#, fuzzy
625+
msgid "as ``_PyObject_Vectorcall``"
626+
msgstr ":c:func:`PyObject_Vectorcall`"
627+
628+
#: ../../c-api/call.rst:367
629+
msgid ""
630+
"Renamed to the current name, without the leading underscore. The old "
631+
"provisional name is :term:`soft deprecated`."
632+
msgstr ""
633+
634+
#: ../../c-api/call.rst:372
624635
msgid ""
625636
"Call *callable* with positional arguments passed exactly as in the "
626637
"vectorcall_ protocol, but with keyword arguments passed as a dictionary "
@@ -629,7 +640,7 @@ msgstr ""
629640
"附帶與在 vectorcall_ 協定中傳入的相同位置引數來呼叫 *callable*,但會加上以字"
630641
"典 *kwdict* 格式傳入的關鍵字引數。*args* 陣列將只包含位置引數。"
631642

632-
#: ../../c-api/call.rst:369
643+
#: ../../c-api/call.rst:376
633644
msgid ""
634645
"Regardless of which protocol is used internally, a conversion of arguments "
635646
"needs to be done. Therefore, this function should only be used if the caller "
@@ -639,7 +650,7 @@ msgstr ""
639650
"無論內部使用了哪一種協定,都會需要進行引數的轉換。因此,此函式應該只有在呼叫"
640651
"方已經擁有一個要作為關鍵字引數的字典、但沒有作為位置引數的 tuple 時才被使用。"
641652

642-
#: ../../c-api/call.rst:379
653+
#: ../../c-api/call.rst:386
643654
msgid ""
644655
"Call a method using the vectorcall calling convention. The name of the "
645656
"method is given as a Python string *name*. The object whose method is called "
@@ -657,19 +668,19 @@ msgstr ""
657668
"加上 :c:macro:`PY_VECTORCALL_ARGUMENTS_OFFSET`。關鍵字引數可以像在 :c:func:"
658669
"`PyObject_Vectorcall` 中一樣被傳入。"
659670

660-
#: ../../c-api/call.rst:388
671+
#: ../../c-api/call.rst:395
661672
msgid ""
662673
"If the object has the :c:macro:`Py_TPFLAGS_METHOD_DESCRIPTOR` feature, this "
663674
"will call the unbound method object with the full *args* vector as arguments."
664675
msgstr ""
665676
"如果物件具有 :c:macro:`Py_TPFLAGS_METHOD_DESCRIPTOR` 特性,這將以完整的 "
666677
"*args* 向量作為引數來呼叫 unbound method(未繫結方法)物件。"
667678

668-
#: ../../c-api/call.rst:399
679+
#: ../../c-api/call.rst:406
669680
msgid "Call Support API"
670681
msgstr "呼叫支援 API"
671682

672-
#: ../../c-api/call.rst:403
683+
#: ../../c-api/call.rst:410
673684
msgid ""
674685
"Determine if the object *o* is callable. Return ``1`` if the object is "
675686
"callable and ``0`` otherwise. This function always succeeds."

0 commit comments

Comments
 (0)