Skip to content

Commit f967fed

Browse files
sync with cpython f331d03e
1 parent 99350d0 commit f967fed

File tree

3 files changed

+40
-42
lines changed

3 files changed

+40
-42
lines changed

c-api/code.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.13\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2024-10-09 00:13+0000\n"
10+
"POT-Creation-Date: 2025-05-26 00:17+0000\n"
1111
"PO-Revision-Date: 2015-12-09 17:51+0000\n"
1212
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -213,7 +213,7 @@ msgstr ""
213213
#: ../../c-api/code.rst:184
214214
msgid ""
215215
"If *event* is ``PY_CODE_EVENT_CREATE``, then the callback is invoked after "
216-
"`co` has been fully initialized. Otherwise, the callback is invoked before "
216+
"*co* has been fully initialized. Otherwise, the callback is invoked before "
217217
"the destruction of *co* takes place, so the prior state of *co* can be "
218218
"inspected."
219219
msgstr ""

c-api/function.po

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
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
3838
msgid ""
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``."
4242
msgstr ""
4343
"這是個 :c:type:`PyTypeObject` 的實例,且代表了 Python 函式型別,Python 程式設"
4444
"計者可透過 ``types.FunctionType`` 使用它。"
4545

4646
#: ../../c-api/function.rst:28
4747
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."
5151
msgstr ""
5252
"如果 *o* 是個函式物件(擁有 :c:data:`PyFunction_Type` 的型別)則回傳 true。參"
5353
"數必須不為 ``NULL``。此函式必能成功執行。"
@@ -63,30 +63,28 @@ msgstr ""
6363

6464
#: ../../c-api/function.rst:37
6565
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."
7171
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__` 被設為和程式碼物"
7675
"件 :attr:`~codeobject.co_qualname` 欄位相同的值。"
7776

7877
#: ../../c-api/function.rst:46
7978
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."
8583
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` 欄位相同的值。"
9088

9189
#: ../../c-api/function.rst:57
9290
msgid "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*."
104102
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*。"
108105

109106
#: ../../c-api/function.rst:71
110107
msgid ""
@@ -183,10 +180,10 @@ msgstr ""
183180

184181
#: ../../c-api/function.rst:138
185182
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.)"
190187
msgstr ""
191188

192189
#: ../../c-api/function.rst:148
@@ -220,9 +217,9 @@ msgstr ""
220217
#: ../../c-api/function.rst:163
221218
msgid ""
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."
226223
msgstr ""
227224

228225
#: ../../c-api/function.rst:168
@@ -234,7 +231,7 @@ msgstr ""
234231
#: ../../c-api/function.rst:171
235232
msgid ""
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
255252
msgid ""
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``."
259256
msgstr ""
260257

261258
#: ../../c-api/function.rst:189

c-api/typeobj.po

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.13\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2025-05-22 00:16+0000\n"
9+
"POT-Creation-Date: 2025-05-26 00:17+0000\n"
1010
"PO-Revision-Date: 2018-05-23 14:33+0000\n"
1111
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -2193,8 +2193,9 @@ msgstr ""
21932193

21942194
#: ../../c-api/typeobj.rst:1190
21952195
msgid ""
2196-
"This bit indicates that instances of the class have a `~object.__dict__` "
2197-
"attribute, and that the space for the dictionary is managed by the VM."
2196+
"This bit indicates that instances of the class have a :attr:`~object."
2197+
"__dict__` attribute, and that the space for the dictionary is managed by the "
2198+
"VM."
21982199
msgstr ""
21992200

22002201
#: ../../c-api/typeobj.rst:1193

0 commit comments

Comments
 (0)