@@ -10,7 +10,7 @@ msgid ""
10
10
msgstr ""
11
11
"Project-Id-Version : Python 3.13\n "
12
12
"Report-Msgid-Bugs-To : \n "
13
- "POT-Creation-Date : 2025-02-17 00:15 +0000\n "
13
+ "POT-Creation-Date : 2025-05-26 00:17 +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- "
@@ -37,17 +37,17 @@ msgstr "用於函式的 C 結構。"
37
37
#: ../../c-api/function.rst:22
38
38
msgid ""
39
39
"This is an instance of :c:type:`PyTypeObject` and represents the Python "
40
- "function type. It is exposed to Python programmers as "
41
- "``types. FunctionType``."
40
+ "function type. It is exposed to Python programmers as ``types. "
41
+ "FunctionType``."
42
42
msgstr ""
43
43
"這是個 :c:type:`PyTypeObject` 的實例,且代表了 Python 函式型別,Python 程式設"
44
44
"計者可透過 ``types.FunctionType`` 使用它。"
45
45
46
46
#: ../../c-api/function.rst:28
47
47
msgid ""
48
- "Return true if *o* is a function object (has "
49
- "type :c:data: `PyFunction_Type`). The parameter must not be ``NULL``. This "
50
- "function always succeeds."
48
+ "Return true if *o* is a function object (has type :c:data: "
49
+ "`PyFunction_Type`). The parameter must not be ``NULL``. This function "
50
+ "always succeeds."
51
51
msgstr ""
52
52
"如果 *o* 是個函式物件(擁有 :c:data:`PyFunction_Type` 的型別)則回傳 true。參"
53
53
"數必須不為 ``NULL``。此函式必能成功執行。"
@@ -63,30 +63,28 @@ msgstr ""
63
63
64
64
#: ../../c-api/function.rst:37
65
65
msgid ""
66
- "The function's docstring and name are retrieved from the code "
67
- "object. :attr: `~function.__module__` is retrieved from *globals*. The "
68
- "argument defaults, annotations and closure are set to "
69
- "``NULL``. :attr:`~function.__qualname__` is set to the same value as the "
70
- "code object's :attr:`~codeobject. co_qualname` field."
66
+ "The function's docstring and name are retrieved from the code object. :attr: "
67
+ "`~function.__module__` is retrieved from *globals*. The argument defaults, "
68
+ "annotations and closure are set to ``NULL``. :attr:`~function.__qualname__` "
69
+ "is set to the same value as the code object's :attr:`~codeobject. "
70
+ "co_qualname` field."
71
71
msgstr ""
72
- "函式的文件字串 (docstring) 和名稱是從程式碼物件所取"
73
- "得,:attr:`~function.__module__` 是自 *globals* 所取得。引數預設值、標註 "
74
- "(annotation) 和閉包 (closure) 被設為 "
75
- "``NULL``,:attr:`~function.__qualname__` 被設為和程式碼物"
72
+ "函式的文件字串 (docstring) 和名稱是從程式碼物件所取得,:attr:`~function."
73
+ "__module__` 是自 *globals* 所取得。引數預設值、標註 (annotation) 和閉包 "
74
+ "(closure) 被設為 ``NULL``,:attr:`~function.__qualname__` 被設為和程式碼物"
76
75
"件 :attr:`~codeobject.co_qualname` 欄位相同的值。"
77
76
78
77
#: ../../c-api/function.rst:46
79
78
msgid ""
80
- "As :c:func:`PyFunction_New`, but also allows setting the function "
81
- "object's :attr:`~function.__qualname__` attribute. *qualname* should be a "
82
- "unicode object or ``NULL``; if ``NULL``, the :attr:`!__qualname__` attribute "
83
- "is set to the same value as the code "
84
- "object's :attr:`~codeobject.co_qualname` field."
79
+ "As :c:func:`PyFunction_New`, but also allows setting the function object's :"
80
+ "attr:`~function.__qualname__` attribute. *qualname* should be a unicode "
81
+ "object or ``NULL``; if ``NULL``, the :attr:`!__qualname__` attribute is set "
82
+ "to the same value as the code object's :attr:`~codeobject.co_qualname` field."
85
83
msgstr ""
86
- "和 :c:func:`PyFunction_New` 相似,但也允許函式物 "
87
- "件 :attr:`~function. __qualname__` 屬性的設定,*qualname* 應為一個 unicode 物 "
88
- "件或是 ``NULL``;如為 ``NULL`` ,:attr:`!__qualname__` 屬性會被設為與程式碼物 "
89
- "件 :attr: `~codeobject.co_qualname` 欄位相同的值。"
84
+ "和 :c:func:`PyFunction_New` 相似,但也允許函式物件 :attr:`~function. "
85
+ "__qualname__` 屬性的設定,*qualname* 應為一個 unicode 物件或是 ``NULL``;如 "
86
+ "為 ``NULL``,:attr:`!__qualname__` 屬性會被設為與程式碼物件 :attr: "
87
+ "`~codeobject.co_qualname` 欄位相同的值。"
90
88
91
89
#: ../../c-api/function.rst:57
92
90
msgid "Return the code object associated with the function object *op*."
@@ -102,9 +100,8 @@ msgid ""
102
100
"attribute of the :ref:`function object <user-defined-funcs>` *op*. It can be "
103
101
"*NULL*."
104
102
msgstr ""
105
- "回傳一個\\ :ref:`函式物件 <user-defined-funcs>` *op* "
106
- "之 :attr:`~function.__module__` 屬性的 :term:`borrowed reference`,它可以是 "
107
- "*NULL*。"
103
+ "回傳一個\\ :ref:`函式物件 <user-defined-funcs>` *op* 之 :attr:`~function."
104
+ "__module__` 屬性的 :term:`borrowed reference`,它可以是 *NULL*。"
108
105
109
106
#: ../../c-api/function.rst:71
110
107
msgid ""
@@ -183,10 +180,10 @@ msgstr ""
183
180
184
181
#: ../../c-api/function.rst:138
185
182
msgid ""
186
- "Clear watcher identified by *watcher_id* previously returned "
187
- "from :c:func: `PyFunction_AddWatcher` for the current interpreter. Return "
188
- "``0`` on success, or ``-1`` and set an exception on error (e.g. if the "
189
- "given *watcher_id* was never registered.)"
183
+ "Clear watcher identified by *watcher_id* previously returned from :c:func: "
184
+ "`PyFunction_AddWatcher` for the current interpreter. Return ``0`` on "
185
+ "success, or ``-1`` and set an exception on error (e.g. if the given "
186
+ "*watcher_id* was never registered.)"
190
187
msgstr ""
191
188
192
189
#: ../../c-api/function.rst:148
@@ -220,9 +217,9 @@ msgstr ""
220
217
#: ../../c-api/function.rst:163
221
218
msgid ""
222
219
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
223
- "then *new_value* will be ``NULL``. Otherwise, *new_value* will hold "
224
- "a :term: `borrowed reference` to the new value that is about to be stored in "
225
- "*func* for the attribute that is being modified."
220
+ "then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a :term: "
221
+ "`borrowed reference` to the new value that is about to be stored in *func* "
222
+ "for the attribute that is being modified."
226
223
msgstr ""
227
224
228
225
#: ../../c-api/function.rst:168
@@ -234,7 +231,7 @@ msgstr ""
234
231
#: ../../c-api/function.rst:171
235
232
msgid ""
236
233
"If *event* is ``PyFunction_EVENT_CREATE``, then the callback is invoked "
237
- "after ` func` has been fully initialized. Otherwise, the callback is invoked "
234
+ "after * func* has been fully initialized. Otherwise, the callback is invoked "
238
235
"before the modification to *func* takes place, so the prior state of *func* "
239
236
"can be inspected. The runtime is permitted to optimize away the creation of "
240
237
"function objects when possible. In such cases no event will be emitted. "
@@ -254,8 +251,8 @@ msgstr ""
254
251
#: ../../c-api/function.rst:185
255
252
msgid ""
256
253
"If the callback sets an exception, it must return ``-1``; this exception "
257
- "will be printed as an unraisable exception "
258
- "using :c:func: `PyErr_WriteUnraisable`. Otherwise it should return ``0``."
254
+ "will be printed as an unraisable exception using :c:func: "
255
+ "`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
259
256
msgstr ""
260
257
261
258
#: ../../c-api/function.rst:189
0 commit comments