Skip to content

Commit d390843

Browse files
Apply suggestions from code review
Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
1 parent 5371d4f commit d390843

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

c-api/call.po

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgstr ""
99
"Project-Id-Version: Python 3.10\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2022-06-11 14:46+0800\n"
12-
"PO-Revision-Date: 2022-06-11 14:54+0800\n"
12+
"PO-Revision-Date: 2022-06-12 14:46+0800\n"
1313
"Last-Translator: Matt Wang <mattwag44@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1515
"tw)\n"
@@ -38,8 +38,8 @@ msgid ""
3838
"Instances of classes that set :c:member:`~PyTypeObject.tp_call` are "
3939
"callable. The signature of the slot is::"
4040
msgstr ""
41-
"設定 :c:member:`~PyTypeObject.tp_call` 的類別之實例都是可呼叫的。槽位 (slot) "
42-
"的簽名為:\n"
41+
"設定 :c:member:`~PyTypeObject.tp_call` 的類別之實例都是可呼叫的。該擴充槽 "
42+
"(slot) 的簽章為:\n"
4343
"\n"
4444
"::"
4545

@@ -130,7 +130,7 @@ msgid ""
130130
msgstr ""
131131
"類別可以透過啟用 :const:`Py_TPFLAGS_HAVE_VECTORCALL` 旗標並將 :c:member:"
132132
"`~PyTypeObject.tp_vectorcall_offset` 設定為物件結構中有出現 *vectorcallfunc* "
133-
"的 offset 來實作 vectorcall 協定。這是一個指向具有以下簽名之函式的指標:"
133+
"的 offset 來實作 vectorcall 協定。這是一個指向具有以下簽章之函式的指標:"
134134

135135
#: ../../c-api/call.rst:73
136136
msgid "*callable* is the object being called."
@@ -201,8 +201,8 @@ msgid ""
201201
msgstr ""
202202
"當可以以幾乎無代價的方式(無需佔據額外的記憶體)來達成,那麼會推薦呼叫者使"
203203
"用 :const:`PY_VECTORCALL_ARGUMENTS_OFFSET`。這樣做會讓如 bound method(繫結方"
204-
"法)之類的可呼叫函式非常有效地繼續向前呼叫(包括帶有一個在首位的 *self* "
205-
")。"
204+
"法)之類的可呼叫函式非常有效地繼續向前呼叫(這類函式包含一個在首位的 *self* "
205+
"引數)。"
206206

207207
#: ../../c-api/call.rst:102
208208
msgid ""
@@ -229,8 +229,8 @@ msgstr ""
229229
"``_PyObject_VectorcallMethod``、``_PyVectorcall_Function``、"
230230
"``_PyObject_CallOneArg``、``_PyObject_CallMethodNoArgs``、"
231231
"``_PyObject_CallMethodOneArg``。此外,``PyObject_VectorcallDict`` 也以 "
232-
"``_PyObject_FastCallDict`` 名稱提供。舊的名稱仍有被定義,做為不帶底線的新名稱"
233-
"的別名。"
232+
"``_PyObject_FastCallDict`` 名稱提供。這些舊名稱仍有被定義,做為不帶底線的新名"
233+
"稱的別名。"
234234

235235
#: ../../c-api/call.rst:121
236236
msgid "Recursion Control"
@@ -299,7 +299,7 @@ msgid ""
299299
"arguments given in a tuple and dict, respectively."
300300
msgstr ""
301301
"呼叫 *callable* 的 :c:type:`vectorcallfunc`,其位置引數和關鍵字引數分別以 "
302-
"tuple 和 dict 形式給定。"
302+
"tuple 和 dict 格式給定。"
303303

304304
#: ../../c-api/call.rst:166
305305
msgid ""
@@ -308,9 +308,9 @@ msgid ""
308308
"It does not check the :const:`Py_TPFLAGS_HAVE_VECTORCALL` flag and it does "
309309
"not fall back to ``tp_call``."
310310
msgstr ""
311-
"這是一個專門函式,其目的是被放入 :c:member:`~PyTypeObject.tp_call` 槽位或是用"
312-
" ``tp_call`` 的實作。它不會檢查 :const:`Py_TPFLAGS_HAVE_VECTORCALL` 旗標並"
313-
"且它不會退回 (fall back) 使用 ``tp_call``。"
311+
"這是一個專門函式,其目的是被放入 :c:member:`~PyTypeObject.tp_call` 擴充槽或是"
312+
"用於 ``tp_call`` 的實作。它不會檢查 :const:`Py_TPFLAGS_HAVE_VECTORCALL` 旗標"
313+
"並且它不會退回 (fall back) 使用 ``tp_call``。"
314314

315315
#: ../../c-api/call.rst:177
316316
msgid "Object Calling API"
@@ -331,7 +331,7 @@ msgstr ""
331331
msgid ""
332332
"The following table summarizes the available functions; please see "
333333
"individual documentation for details."
334-
msgstr "下表總結了可用的函式;請參閱各個文件以瞭解詳情。"
334+
msgstr "下表總結了可用的函式;請參閱各個說明文件以瞭解詳情。"
335335

336336
#: ../../c-api/call.rst:189
337337
msgid "Function"
@@ -415,7 +415,7 @@ msgstr ":c:func:`PyObject_CallFunctionObjArgs`"
415415

416416
#: ../../c-api/call.rst:203 ../../c-api/call.rst:205
417417
msgid "variadic"
418-
msgstr "可變參數"
418+
msgstr "可變引數"
419419

420420
#: ../../c-api/call.rst:205
421421
msgid ":c:func:`PyObject_CallMethodObjArgs`"
@@ -520,15 +520,15 @@ msgid ""
520520
"are provided."
521521
msgstr ""
522522
"呼叫一個可呼叫的 Python 物件 *callable*,附帶數量可變的 C 引數。這些 C 引數使"
523-
"用 :c:func:`Py_BuildValue` 風格的格式字串來描述。形式可以為 *NULL*,表示沒有"
523+
"用 :c:func:`Py_BuildValue` 風格的格式字串來描述。格式可以為 *NULL*,表示沒有"
524524
"提供任何引數。"
525525

526526
#: ../../c-api/call.rst:278
527527
msgid ""
528528
"Note that if you only pass :c:type:`PyObject *` args, :c:func:"
529529
"`PyObject_CallFunctionObjArgs` is a faster alternative."
530530
msgstr ""
531-
"注意如果你只傳入 :c:type:`PyObject *` 引數,則 :c:func:"
531+
"注意,如果你只傳入 :c:type:`PyObject *` 引數,則 :c:func:"
532532
"`PyObject_CallFunctionObjArgs` 是另一個更快速的選擇。"
533533

534534
#: ../../c-api/call.rst:281
@@ -546,7 +546,7 @@ msgstr ""
546546

547547
#: ../../c-api/call.rst:291
548548
msgid "The format can be *NULL*, indicating that no arguments are provided."
549-
msgstr "形式可以為 *NULL*,表示沒有提供任何引數。"
549+
msgstr "格式可以為 *NULL*,表示沒有提供任何引數。"
550550

551551
#: ../../c-api/call.rst:296
552552
msgid ""
@@ -589,8 +589,8 @@ msgid ""
589589
"variable number of parameters followed by *NULL*."
590590
msgstr ""
591591
"呼叫 Python 物件 *obj* 中的一個 method,其中 method 名稱由 *name* 中的 "
592-
"Python 字串物件給定。被呼叫會附帶數量可變的 :c:type:`PyObject *` 引數。這些引"
593-
"數是以位置在 *NULL* 後面、且數量可變的參數來提供。"
592+
"Python 字串物件給定。被呼叫時會附帶數量可變的 :c:type:`PyObject *` 引數。這些"
593+
"引數是以位置在 *NULL* 後面、且數量可變的參數來提供。"
594594

595595
#: ../../c-api/call.rst:332
596596
msgid ""
@@ -626,7 +626,7 @@ msgid ""
626626
"*kwdict*. The *args* array contains only the positional arguments."
627627
msgstr ""
628628
"附帶與在 vectorcall_ 協定中傳入的相同位置引數來呼叫 *callable*,但會加上以字"
629-
"典 *kwdict* 形式傳入的關鍵字引數。*args* 陣列將只包含位置引數。"
629+
"典 *kwdict* 格式傳入的關鍵字引數。*args* 陣列將只包含位置引數。"
630630

631631
#: ../../c-api/call.rst:371
632632
msgid ""
@@ -650,7 +650,7 @@ msgid ""
650650
"`PyObject_Vectorcall`."
651651
msgstr ""
652652
"使用 vectorcall 呼叫慣例來呼叫一個 method。method 的名稱以 Python 字串 "
653-
"*name* 的形式給定。被呼叫 method 的物件為 *args[0]*,而 *args* 陣列從 "
653+
"*name* 的格式給定。被呼叫 method 的物件為 *args[0]*,而 *args* 陣列從 "
654654
"*args[1]* 開始的部分則代表呼叫的引數。必須傳入至少一個位置引數。*nargsf* 為包"
655655
"括 *args[0]* 在內的位置引數的數量,如果 ``args[0]`` 的值可能被臨時改變則要再"
656656
"加上 :const:`PY_VECTORCALL_ARGUMENTS_OFFSET`。關鍵字引數可以像在 :c:func:"
@@ -662,7 +662,7 @@ msgid ""
662662
"will call the unbound method object with the full *args* vector as arguments."
663663
msgstr ""
664664
"如果物件具有 :const:`Py_TPFLAGS_METHOD_DESCRIPTOR` 特性,這將以完整的 *args* "
665-
"vector 作為引數來呼叫 unbound method(未繫結方法)物件。"
665+
"向量作為引數來呼叫 unbound method(未繫結方法)物件。"
666666

667667
#: ../../c-api/call.rst:401
668668
msgid "Call Support API"

0 commit comments

Comments
 (0)