8
8
msgstr ""
9
9
"Project-Id-Version : Python 3.12\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
- "POT-Creation-Date : 2023-07-17 17:39+0800 \n "
11
+ "POT-Creation-Date : 2023-07-22 00:04+0000 \n "
12
12
"PO-Revision-Date : 2022-10-16 03:20+0800\n "
13
13
"Last-Translator : Matt Wang <mattwag44@gmail.com>\n "
14
14
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -111,11 +111,11 @@ msgstr ""
111
111
112
112
#: ../../c-api/call.rst:62
113
113
msgid ""
114
- "The :const :`Py_TPFLAGS_HAVE_VECTORCALL` flag is now removed from a class "
114
+ "The :c:macro :`Py_TPFLAGS_HAVE_VECTORCALL` flag is now removed from a class "
115
115
"when the class's :py:meth:`~object.__call__` method is reassigned. (This "
116
116
"internally sets :c:member:`~PyTypeObject.tp_call` only, and thus may make it "
117
117
"behave differently than the vectorcall function.) In earlier Python "
118
- "versions, vectorcall should only be used with :const :`immutable "
118
+ "versions, vectorcall should only be used with :c:macro :`immutable "
119
119
"<Py_TPFLAGS_IMMUTABLETYPE>` or static types."
120
120
msgstr ""
121
121
@@ -132,13 +132,13 @@ msgstr ""
132
132
133
133
#: ../../c-api/call.rst:74
134
134
msgid ""
135
- "Classes can implement the vectorcall protocol by enabling the :const :"
135
+ "Classes can implement the vectorcall protocol by enabling the :c:macro :"
136
136
"`Py_TPFLAGS_HAVE_VECTORCALL` flag and setting :c:member:`~PyTypeObject."
137
137
"tp_vectorcall_offset` to the offset inside the object structure where a "
138
138
"*vectorcallfunc* appears. This is a pointer to a function with the following "
139
139
"signature:"
140
140
msgstr ""
141
- "類別可以透過啟用 :const :`Py_TPFLAGS_HAVE_VECTORCALL` 旗標並將 :c:member:"
141
+ "類別可以透過啟用 :c:macro :`Py_TPFLAGS_HAVE_VECTORCALL` 旗標並將 :c:member:"
142
142
"`~PyTypeObject.tp_vectorcall_offset` 設定為物件結構中有出現 *vectorcallfunc* "
143
143
"的 offset 來實作 vectorcall 協定。這是一個指向具有以下簽章之函式的指標:"
144
144
@@ -163,10 +163,10 @@ msgstr "*nargsf* 是位置引數的數量加上可能會有的"
163
163
164
164
#: ../../c-api/call.rst:87
165
165
msgid ""
166
- ":const :`PY_VECTORCALL_ARGUMENTS_OFFSET` flag. To get the actual number of "
166
+ ":c:macro :`PY_VECTORCALL_ARGUMENTS_OFFSET` flag. To get the actual number of "
167
167
"positional arguments from *nargsf*, use :c:func:`PyVectorcall_NARGS`."
168
168
msgstr ""
169
- ":const :`PY_VECTORCALL_ARGUMENTS_OFFSET` 旗標。如果要從 *nargsf* 獲得實際的位"
169
+ ":c:macro :`PY_VECTORCALL_ARGUMENTS_OFFSET` 旗標。如果要從 *nargsf* 獲得實際的位"
170
170
"置引數數量,請使用 :c:func:`PyVectorcall_NARGS`。"
171
171
172
172
#: ../../c-api/call.rst:94
@@ -205,12 +205,12 @@ msgstr ""
205
205
#: ../../c-api/call.rst:106
206
206
msgid ""
207
207
"Whenever they can do so cheaply (without additional allocation), callers are "
208
- "encouraged to use :const :`PY_VECTORCALL_ARGUMENTS_OFFSET`. Doing so will "
208
+ "encouraged to use :c:macro :`PY_VECTORCALL_ARGUMENTS_OFFSET`. Doing so will "
209
209
"allow callables such as bound methods to make their onward calls (which "
210
210
"include a prepended *self* argument) very efficiently."
211
211
msgstr ""
212
212
"當可以以幾乎無代價的方式(無需佔據額外的記憶體)來達成,那麼會推薦呼叫者使"
213
- "用 :const :`PY_VECTORCALL_ARGUMENTS_OFFSET`。這樣做會讓如 bound method(繫結方"
213
+ "用 :c:macro :`PY_VECTORCALL_ARGUMENTS_OFFSET`。這樣做會讓如 bound method(繫結方"
214
214
"法)之類的可呼叫函式非常有效地繼續向前呼叫(這類函式包含一個在首位的 *self* "
215
215
"引數)。"
216
216
@@ -315,11 +315,11 @@ msgstr ""
315
315
msgid ""
316
316
"This is a specialized function, intended to be put in the :c:member:"
317
317
"`~PyTypeObject.tp_call` slot or be used in an implementation of ``tp_call``. "
318
- "It does not check the :const :`Py_TPFLAGS_HAVE_VECTORCALL` flag and it does "
318
+ "It does not check the :c:macro :`Py_TPFLAGS_HAVE_VECTORCALL` flag and it does "
319
319
"not fall back to ``tp_call``."
320
320
msgstr ""
321
321
"這是一個專門函式,其目的是被放入 :c:member:`~PyTypeObject.tp_call` 擴充槽或是"
322
- "用於 ``tp_call`` 的實作。它不會檢查 :const :`Py_TPFLAGS_HAVE_VECTORCALL` 旗標"
322
+ "用於 ``tp_call`` 的實作。它不會檢查 :c:macro :`Py_TPFLAGS_HAVE_VECTORCALL` 旗標"
323
323
"並且它不會退回 (fall back) 使用 ``tp_call``。"
324
324
325
325
#: ../../c-api/call.rst:186
@@ -654,24 +654,24 @@ msgid ""
654
654
"method is given as a Python string *name*. The object whose method is called "
655
655
"is *args[0]*, and the *args* array starting at *args[1]* represents the "
656
656
"arguments of the call. There must be at least one positional argument. "
657
- "*nargsf* is the number of positional arguments including *args[0]*, plus :"
658
- "const :`PY_VECTORCALL_ARGUMENTS_OFFSET` if the value of ``args[0]`` may "
657
+ "*nargsf* is the number of positional arguments including *args[0]*, plus :c: "
658
+ "macro :`PY_VECTORCALL_ARGUMENTS_OFFSET` if the value of ``args[0]`` may "
659
659
"temporarily be changed. Keyword arguments can be passed just like in :c:func:"
660
660
"`PyObject_Vectorcall`."
661
661
msgstr ""
662
662
"使用 vectorcall 呼叫慣例來呼叫一個 method。method 的名稱以 Python 字串 "
663
663
"*name* 的格式給定。被呼叫 method 的物件為 *args[0]*,而 *args* 陣列從 "
664
664
"*args[1]* 開始的部分則代表呼叫的引數。必須傳入至少一個位置引數。*nargsf* 為包"
665
665
"括 *args[0]* 在內的位置引數的數量,如果 ``args[0]`` 的值可能被臨時改變則要再"
666
- "加上 :const :`PY_VECTORCALL_ARGUMENTS_OFFSET`。關鍵字引數可以像在 :c:func:"
666
+ "加上 :c:macro :`PY_VECTORCALL_ARGUMENTS_OFFSET`。關鍵字引數可以像在 :c:func:"
667
667
"`PyObject_Vectorcall` 中一樣被傳入。"
668
668
669
669
#: ../../c-api/call.rst:399
670
670
msgid ""
671
- "If the object has the :const :`Py_TPFLAGS_METHOD_DESCRIPTOR` feature, this "
671
+ "If the object has the :c:macro :`Py_TPFLAGS_METHOD_DESCRIPTOR` feature, this "
672
672
"will call the unbound method object with the full *args* vector as arguments."
673
673
msgstr ""
674
- "如果物件具有 :const :`Py_TPFLAGS_METHOD_DESCRIPTOR` 特性,這將以完整的 *args* "
674
+ "如果物件具有 :c:macro :`Py_TPFLAGS_METHOD_DESCRIPTOR` 特性,這將以完整的 *args* "
675
675
"向量作為引數來呼叫 unbound method(未繫結方法)物件。"
676
676
677
677
#: ../../c-api/call.rst:410
0 commit comments