@@ -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``types. "
41- "FunctionType``."
40+ "function type. It is exposed to Python programmers as "
41+ "``types. 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 (hastype :c:data: "
49- "`PyFunction_Type`). The parameter must not be ``NULL``. This function "
50- "always succeeds."
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."
5151msgstr ""
5252"如果 *o* 是個函式物件(擁有 :c:data:`PyFunction_Type` 的型別)則回傳 true。參"
5353"數必須不為 ``NULL``。此函式必能成功執行。"
@@ -63,28 +63,30 @@ msgstr ""
6363
6464#: ../../c-api/function.rst:37
6565msgid ""
66- "The function's docstring and name are retrieved from the codeobject. :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 thecode object's :attr:`~codeobject. "
70- "co_qualname` field."
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."
7171msgstr ""
72- "函式的文件字串 (docstring) 和名稱是從程式碼物件所取得,:attr:`~function."
73- "__module__` 是自 *globals* 所取得。引數預設值、標註 (annotation) 和閉包 "
74- "(closure) 被設為 ``NULL``,:attr:`~function.__qualname__` 被設為和程式碼物"
72+ "函式的文件字串 (docstring) 和名稱是從程式碼物件所取"
73+ "得,:attr:`~function.__module__` 是自 *globals* 所取得。引數預設值、標註 "
74+ "(annotation) 和閉包 (closure) 被設為 "
75+ "``NULL``,:attr:`~function.__qualname__` 被設為和程式碼物"
7576"件 :attr:`~codeobject.co_qualname` 欄位相同的值。"
7677
7778#: ../../c-api/function.rst:46
7879msgid ""
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."
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."
8385msgstr ""
84- "和 :c:func:`PyFunction_New` 相似,但也允許函式物件 :attr:`~function. "
85- "__qualname__` 屬性的設定,*qualname* 應為一個 unicode物件或是 ``NULL``;如 "
86- "為 ``NULL``,:attr:`!__qualname__`屬性會被設為與程式碼物件 :attr: "
87- "`~codeobject.co_qualname` 欄位相同的值。"
86+ "和 :c:func:`PyFunction_New` 相似,但也允許函式物 "
87+ "件 :attr:`~function. __qualname__` 屬性的設定,*qualname* 應為一個 unicode物 "
88+ "件或是 ``NULL``;如為 ``NULL`` ,:attr:`!__qualname__`屬性會被設為與程式碼物 "
89+ "件 :attr: `~codeobject.co_qualname` 欄位相同的值。"
8890
8991#: ../../c-api/function.rst:57
9092msgid "Return the code object associated with the function object *op*."
@@ -100,8 +102,9 @@ msgid ""
100102"attribute of the :ref:`function object <user-defined-funcs>` *op*. It can be "
101103"*NULL*."
102104msgstr ""
103- "回傳一個\\ :ref:`函式物件 <user-defined-funcs>` *op* 之 :attr:`~function."
104- "__module__` 屬性的 :term:`borrowed reference`,它可以是 *NULL*。"
105+ "回傳一個\\ :ref:`函式物件 <user-defined-funcs>` *op* "
106+ "之 :attr:`~function.__module__` 屬性的 :term:`borrowed reference`,它可以是 "
107+ "*NULL*。"
105108
106109#: ../../c-api/function.rst:71
107110msgid ""
@@ -180,10 +183,10 @@ msgstr ""
180183
181184#: ../../c-api/function.rst:138
182185msgid ""
183- "Clear watcher identified by *watcher_id* previously returnedfrom :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.)"
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.)"
187190msgstr ""
188191
189192#: ../../c-api/function.rst:148
@@ -192,23 +195,23 @@ msgstr ""
192195
193196#: ../../c-api/function.rst:150
194197msgid "``PyFunction_EVENT_CREATE``"
195- msgstr ""
198+ msgstr "``PyFunction_EVENT_CREATE`` "
196199
197200#: ../../c-api/function.rst:151
198201msgid "``PyFunction_EVENT_DESTROY``"
199- msgstr ""
202+ msgstr "``PyFunction_EVENT_DESTROY`` "
200203
201204#: ../../c-api/function.rst:152
202205msgid "``PyFunction_EVENT_MODIFY_CODE``"
203- msgstr ""
206+ msgstr "``PyFunction_EVENT_MODIFY_CODE`` "
204207
205208#: ../../c-api/function.rst:153
206209msgid "``PyFunction_EVENT_MODIFY_DEFAULTS``"
207- msgstr ""
210+ msgstr "``PyFunction_EVENT_MODIFY_DEFAULTS`` "
208211
209212#: ../../c-api/function.rst:154
210213msgid "``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
211- msgstr ""
214+ msgstr "``PyFunction_EVENT_MODIFY_KWDEFAULTS`` "
212215
213216#: ../../c-api/function.rst:161
214217msgid "Type of a function watcher callback function."
@@ -217,9 +220,9 @@ msgstr ""
217220#: ../../c-api/function.rst:163
218221msgid ""
219222"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
220- "then *new_value* will be ``NULL``. Otherwise, *new_value* will holda :term: "
221- "`borrowed reference` to the new value that is about to be stored in *func* "
222- "for the attribute that is being modified."
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."
223226msgstr ""
224227
225228#: ../../c-api/function.rst:168
@@ -251,8 +254,8 @@ msgstr ""
251254#: ../../c-api/function.rst:185
252255msgid ""
253256"If the callback sets an exception, it must return ``-1``; this exception "
254- "will be printed as an unraisable exceptionusing :c:func: "
255- "`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
257+ "will be printed as an unraisable exception "
258+ "using :c:func: `PyErr_WriteUnraisable`. Otherwise it should return ``0``."
256259msgstr ""
257260
258261#: ../../c-api/function.rst:189