@@ -10,7 +10,7 @@ msgid ""
10
10
msgstr ""
11
11
"Project-Id-Version : Python 3.12\n "
12
12
"Report-Msgid-Bugs-To : \n "
13
- "POT-Creation-Date : 2023-12-07 00:03+0000\n "
13
+ "POT-Creation-Date : 2023-12-13 00:03+0000\n "
14
14
"PO-Revision-Date : 2022-11-12 15:45+0800\n "
15
15
"Last-Translator : Matt Wang <mattwang44@gmail.com>\n "
16
16
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -62,153 +62,159 @@ msgstr ""
62
62
"夠存取的全域變數的字典。"
63
63
64
64
#: ../../c-api/function.rst:37
65
+ #, fuzzy
65
66
msgid ""
66
- "The function's docstring and name are retrieved from the code object. "
67
- "*__module__* is retrieved from *globals*. The argument defaults, annotations "
68
- "and closure are set to ``NULL``. *__qualname__* is set to the same value as "
69
- "the code object's :attr:`~codeobject.co_qualname` field."
67
+ "The function's docstring and name are retrieved from the code object. :attr:"
68
+ "`~function.__module__` is retrieved from *globals*. The argument defaults, "
69
+ "annotations and closure are set to ``NULL``. :attr:`~function.__qualname__` "
70
+ "is set to the same value as the code object's :attr:`~codeobject."
71
+ "co_qualname` field."
70
72
msgstr ""
71
73
"函式的文件字串 (docstring) 和名稱是從程式碼物件所取得,*__module__* 是自 "
72
74
"*globals* 所取得。引數預設值、標註 (annotation) 和閉包 (closure) 被設為 "
73
75
"``NULL``,*__qualname__* 被設為和程式碼物件 :attr:`~codeobject.co_qualname` "
74
76
"欄位相同的值。"
75
77
76
- #: ../../c-api/function.rst:45
78
+ #: ../../c-api/function.rst:46
79
+ #, fuzzy
77
80
msgid ""
78
- "As :c:func:`PyFunction_New`, but also allows setting the function object's "
79
- "`` __qualname__`` attribute. *qualname* should be a unicode object or "
80
- "``NULL``; if ``NULL``, the `` __qualname__`` attribute is set to the same "
81
- "value as the code object's :attr:`~codeobject.co_qualname` field."
81
+ "As :c:func:`PyFunction_New`, but also allows setting the function object's : "
82
+ "attr:`~function. __qualname__` attribute. *qualname* should be a unicode "
83
+ "object or ``NULL``; if ``NULL``, the :attr:`! __qualname__` attribute is set "
84
+ "to the same value as the code object's :attr:`~codeobject.co_qualname` field."
82
85
msgstr ""
83
86
"和 :c:func:`PyFunction_New` 相似,但也允許函式物件 ``__qualname__`` 屬性的設"
84
87
"定,*qualname* 應為一個 unicode 物件或是 ``NULL``;如為 ``NULL``,"
85
88
"``__qualname__`` 屬性會被設為與程式碼物件 :attr:`~codeobject.co_qualname` 欄"
86
89
"位相同的值。"
87
90
88
- #: ../../c-api/function.rst:55
91
+ #: ../../c-api/function.rst:57
89
92
msgid "Return the code object associated with the function object *op*."
90
93
msgstr "回傳與程式碼物件相關的函式物件 *op*。"
91
94
92
- #: ../../c-api/function.rst:60
95
+ #: ../../c-api/function.rst:62
93
96
msgid "Return the globals dictionary associated with the function object *op*."
94
97
msgstr "回傳與全域函式字典相關的函式物件 *op*。"
95
98
96
- #: ../../c-api/function.rst:65
99
+ #: ../../c-api/function.rst:67
100
+ #, fuzzy
97
101
msgid ""
98
- "Return a :term:`borrowed reference` to the *__module__* attribute of the "
99
- "function object *op*. It can be *NULL*."
102
+ "Return a :term:`borrowed reference` to the :attr:`~function.__module__` "
103
+ "attribute of the :ref:`function object <user-defined-funcs>` *op*. It can be "
104
+ "*NULL*."
100
105
msgstr ""
101
106
"回傳一個函式物件 *op* 之 *__module__* 屬性的 :term:`borrowed reference`,它可"
102
107
"以是 *NULL*。"
103
108
104
- #: ../../c-api/function.rst:68
109
+ #: ../../c-api/function.rst:71
110
+ #, fuzzy
105
111
msgid ""
106
- "This is normally a string containing the module name, but can be set to any "
107
- "other object by Python code."
112
+ "This is normally a :class:` string <str>` containing the module name, but can "
113
+ "be set to any other object by Python code."
108
114
msgstr "這通常是個包含模組名稱的字串,但可以被 Python 程式設為任何其他物件。"
109
115
110
- #: ../../c-api/function.rst:74
116
+ #: ../../c-api/function.rst:77
111
117
msgid ""
112
118
"Return the argument default values of the function object *op*. This can be "
113
119
"a tuple of arguments or ``NULL``."
114
120
msgstr ""
115
121
"回傳函式物件 *op* 的引數預設值,這可以是一個含有多個引數的 tuple(元組)或 "
116
122
"``NULL``。"
117
123
118
- #: ../../c-api/function.rst:80
124
+ #: ../../c-api/function.rst:83
119
125
msgid ""
120
126
"Set the argument default values for the function object *op*. *defaults* "
121
127
"must be ``Py_None`` or a tuple."
122
128
msgstr ""
123
129
"設定函式物件 *op* 的引數預設值。*defaults* 必須是 ``Py_None`` 或一個 tuple。"
124
130
125
- #: ../../c-api/function.rst:83 ../../c-api/function.rst:106
126
- #: ../../c-api/function.rst:120
131
+ #: ../../c-api/function.rst:86 ../../c-api/function.rst:109
132
+ #: ../../c-api/function.rst:123
127
133
msgid "Raises :exc:`SystemError` and returns ``-1`` on failure."
128
134
msgstr "引發 :exc:`SystemError` 且在失敗時回傳 ``-1``。"
129
135
130
- #: ../../c-api/function.rst:88
136
+ #: ../../c-api/function.rst:91
131
137
msgid "Set the vectorcall field of a given function object *func*."
132
138
msgstr "為一個給定的函式物件 *func* 設定 vectorcall 欄位。"
133
139
134
- #: ../../c-api/function.rst:90
140
+ #: ../../c-api/function.rst:93
135
141
msgid ""
136
142
"Warning: extensions using this API must preserve the behavior of the "
137
143
"unaltered (default) vectorcall function!"
138
144
msgstr ""
139
145
140
- #: ../../c-api/function.rst:97
146
+ #: ../../c-api/function.rst:100
141
147
msgid ""
142
148
"Return the closure associated with the function object *op*. This can be "
143
149
"``NULL`` or a tuple of cell objects."
144
150
msgstr ""
145
151
"回傳與函式物件 *op* 相關聯的閉包,這可以是個 ``NULL`` 或是一個包含 cell 物件"
146
152
"的 tuple。"
147
153
148
- #: ../../c-api/function.rst:103
154
+ #: ../../c-api/function.rst:106
149
155
msgid ""
150
156
"Set the closure associated with the function object *op*. *closure* must be "
151
157
"``Py_None`` or a tuple of cell objects."
152
158
msgstr ""
153
159
"設定與函式物件 *op* 相關聯的閉包,*closure* 必須是 ``Py_None`` 或是一個包含 "
154
160
"cell 物件的 tuple。"
155
161
156
- #: ../../c-api/function.rst:111
162
+ #: ../../c-api/function.rst:114
157
163
msgid ""
158
164
"Return the annotations of the function object *op*. This can be a mutable "
159
165
"dictionary or ``NULL``."
160
166
msgstr ""
161
167
"回傳函式物件 *op* 的標註,這可以是一個可變動的 (mutable) 字典或 ``NULL``。"
162
168
163
- #: ../../c-api/function.rst:117
169
+ #: ../../c-api/function.rst:120
164
170
msgid ""
165
171
"Set the annotations for the function object *op*. *annotations* must be a "
166
172
"dictionary or ``Py_None``."
167
173
msgstr "設定函式物件 *op* 的標註,*annotations* 必須是一個字典或 ``Py_None``。"
168
174
169
- #: ../../c-api/function.rst:125
175
+ #: ../../c-api/function.rst:128
170
176
msgid ""
171
177
"Register *callback* as a function watcher for the current interpreter. "
172
178
"Return an ID which may be passed to :c:func:`PyFunction_ClearWatcher`. In "
173
179
"case of error (e.g. no more watcher IDs available), return ``-1`` and set an "
174
180
"exception."
175
181
msgstr ""
176
182
177
- #: ../../c-api/function.rst:135
183
+ #: ../../c-api/function.rst:138
178
184
msgid ""
179
185
"Clear watcher identified by *watcher_id* previously returned from :c:func:"
180
186
"`PyFunction_AddWatcher` for the current interpreter. Return ``0`` on "
181
187
"success, or ``-1`` and set an exception on error (e.g. if the given "
182
188
"*watcher_id* was never registered.)"
183
189
msgstr ""
184
190
185
- #: ../../c-api/function.rst:145
191
+ #: ../../c-api/function.rst:148
186
192
msgid ""
187
193
"Enumeration of possible function watcher events: - "
188
194
"``PyFunction_EVENT_CREATE`` - ``PyFunction_EVENT_DESTROY`` - "
189
195
"``PyFunction_EVENT_MODIFY_CODE`` - ``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
190
196
"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
191
197
msgstr ""
192
198
193
- #: ../../c-api/function.rst:157
199
+ #: ../../c-api/function.rst:160
194
200
msgid "Type of a function watcher callback function."
195
201
msgstr ""
196
202
197
- #: ../../c-api/function.rst:159
203
+ #: ../../c-api/function.rst:162
198
204
msgid ""
199
205
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
200
206
"then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a :term:"
201
207
"`borrowed reference` to the new value that is about to be stored in *func* "
202
208
"for the attribute that is being modified."
203
209
msgstr ""
204
210
205
- #: ../../c-api/function.rst:164
211
+ #: ../../c-api/function.rst:167
206
212
msgid ""
207
213
"The callback may inspect but must not modify *func*; doing so could have "
208
214
"unpredictable effects, including infinite recursion."
209
215
msgstr ""
210
216
211
- #: ../../c-api/function.rst:167
217
+ #: ../../c-api/function.rst:170
212
218
msgid ""
213
219
"If *event* is ``PyFunction_EVENT_CREATE``, then the callback is invoked "
214
220
"after `func` has been fully initialized. Otherwise, the callback is invoked "
@@ -220,22 +226,22 @@ msgid ""
220
226
"semantics of the Python code being executed."
221
227
msgstr ""
222
228
223
- #: ../../c-api/function.rst:176
229
+ #: ../../c-api/function.rst:179
224
230
msgid ""
225
231
"If *event* is ``PyFunction_EVENT_DESTROY``, Taking a reference in the "
1241
226
232
"callback to the about-to-be-destroyed function will resurrect it, preventing "
227
233
"it from being freed at this time. When the resurrected object is destroyed "
228
234
"later, any watcher callbacks active at that time will be called again."
229
235
msgstr ""
230
236
231
- #: ../../c-api/function.rst:181
237
+ #: ../../c-api/function.rst:184
232
238
msgid ""
233
239
"If the callback sets an exception, it must return ``-1``; this exception "
234
240
"will be printed as an unraisable exception using :c:func:"
235
241
"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
236
242
msgstr ""
237
243
238
- #: ../../c-api/function.rst:185
244
+ #: ../../c-api/function.rst:188
239
245
msgid ""
240
246
"There may already be a pending exception set on entry to the callback. In "
241
247
"this case, the callback should return ``0`` with the same exception still "
0 commit comments