@@ -10,7 +10,7 @@ msgid ""
1010msgstr ""
1111"Project-Id-Version : Python 3.13\n "
1212"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 "
1414"PO-Revision-Date : 2022-11-12 15:45+0800\n "
1515"Last-Translator : Matt Wang <mattwang44@gmail.com>\n "
1616"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -37,17 +37,17 @@ msgstr "用於函式的 C 結構。"
3737#: ../../c-api/function.rst:22
3838msgid ""
3939"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``."
4242msgstr ""
4343"這是個 :c:type:`PyTypeObject` 的實例,且代表了 Python 函式型別,Python 程式設"
4444"計者可透過 ``types.FunctionType`` 使用它。"
4545
4646#: ../../c-api/function.rst:28
4747msgid ""
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."
5151msgstr ""
5252"如果 *o* 是個函式物件(擁有 :c:data:`PyFunction_Type` 的型別)則回傳 true。參"
5353"數必須不為 ``NULL``。此函式必能成功執行。"
@@ -63,30 +63,28 @@ msgstr ""
6363
6464#: ../../c-api/function.rst:37
6565msgid ""
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."
7171msgstr ""
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__` 被設為和程式碼物"
7675"件 :attr:`~codeobject.co_qualname` 欄位相同的值。"
7776
7877#: ../../c-api/function.rst:46
7978msgid ""
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."
8583msgstr ""
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` 欄位相同的值。"
9088
9189#: ../../c-api/function.rst:57
9290msgid "Return the code object associated with the function object *op*."
@@ -102,9 +100,8 @@ msgid ""
102100"attribute of the :ref:`function object <user-defined-funcs>` *op*. It can be "
103101"*NULL*."
104102msgstr ""
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*。"
108105
109106#: ../../c-api/function.rst:71
110107msgid ""
@@ -183,10 +180,10 @@ msgstr ""
183180
184181#: ../../c-api/function.rst:138
185182msgid ""
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.)"
190187msgstr ""
191188
192189#: ../../c-api/function.rst:148
@@ -220,9 +217,9 @@ msgstr ""
220217#: ../../c-api/function.rst:163
221218msgid ""
222219"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."
226223msgstr ""
227224
228225#: ../../c-api/function.rst:168
@@ -234,7 +231,7 @@ msgstr ""
234231#: ../../c-api/function.rst:171
235232msgid ""
236233"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 "
238235"before the modification to *func* takes place, so the prior state of *func* "
239236"can be inspected. The runtime is permitted to optimize away the creation of "
240237"function objects when possible. In such cases no event will be emitted. "
@@ -254,8 +251,8 @@ msgstr ""
254251#: ../../c-api/function.rst:185
255252msgid ""
256253"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``."
259256msgstr ""
260257
261258#: ../../c-api/function.rst:189
0 commit comments