Skip to content

Commit 7dcd605

Browse files
pydoc-zh-tw[bot]github-actions[bot]mattwang44
authored
Sync with CPython 3.14 (#1174)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Matt.Wang <mattwang44@gmail.com>
1 parent 66989dd commit 7dcd605

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+6782
-6256
lines changed

c-api/bytes.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.14\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2025-11-13 00:15+0000\n"
9+
"POT-Creation-Date: 2025-12-01 00:17+0000\n"
1010
"PO-Revision-Date: 2018-05-23 14:04+0000\n"
1111
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -159,8 +159,8 @@ msgid "``%zd``"
159159
msgstr "``%zd``"
160160

161161
#: ../../c-api/bytes.rst:84
162-
msgid ":c:type:`\\ Py_ssize_t`"
163-
msgstr ":c:type:`\\ Py_ssize_t`"
162+
msgid ":c:type:` Py_ssize_t`"
163+
msgstr ":c:type:` Py_ssize_t`"
164164

165165
#: ../../c-api/bytes.rst:84
166166
msgid "Equivalent to ``printf(\"%zd\")``. [1]_"

c-api/complex.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ msgid ""
194194
msgstr ""
195195
"如果 *op* 不是 Python 複數物件,但有一個 :meth:`~object.__complex__` 方法,則"
196196
"首先會呼叫該方法將 *op* 轉換為 Python 複數物件。如果 :meth:`!__complex__` 並"
197-
"未定義,那麼它會回退到呼叫 :func:`PyFloat_AsDouble` 並回傳其結果。"
197+
"未定義,那麼它會回退到呼叫 :c:func:`PyFloat_AsDouble` 並回傳其結果。"
198198

199199
#: ../../c-api/complex.rst:134 ../../c-api/complex.rst:150
200200
msgid ""
@@ -222,7 +222,7 @@ msgid ""
222222
msgstr ""
223223
"如果 *op* 不是 Python 複數物件,但有一個 :meth:`~object.__complex__` 方法,則"
224224
"首先會呼叫該方法將 *op* 轉換為 Python 複數物件。如果 :meth:`!__complex__` 並"
225-
"未定義,那麼它會回退到呼叫 :func:`PyFloat_AsDouble` 並於成功時回傳 ``0.0``。"
225+
"未定義,那麼它會回退到呼叫 :c:func:`PyFloat_AsDouble` 並於成功時回傳 ``0.0``。"
226226

227227
#: ../../c-api/complex.rst:158
228228
msgid "Return the :c:type:`Py_complex` value of the complex number *op*."

c-api/conversion.po

Lines changed: 48 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: Python 3.14\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2025-11-10 16:45+0000\n"
12+
"POT-Creation-Date: 2025-11-26 00:14+0000\n"
1313
"PO-Revision-Date: 2023-12-11 18:26+0000\n"
1414
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -291,72 +291,98 @@ msgstr ""
291291
"回傳值是指向 *buffer* 的指標,其中包含轉換後的字串,如果轉換失敗則回傳 "
292292
"``NULL``。呼叫者負責透過呼叫 :c:func:`PyMem_Free` 來釋放回傳的字串。"
293293

294-
#: ../../c-api/conversion.rst:167
294+
#: ../../c-api/conversion.rst:168
295295
msgid ""
296-
"Case insensitive comparison of strings. The function works almost "
297-
"identically to :c:func:`!strcmp` except that it ignores the case."
296+
"Case insensitive comparison of strings. These functions work almost "
297+
"identically to :c:func:`!strcmp` and :c:func:`!strncmp` (respectively), "
298+
"except that they ignore the case of ASCII characters."
298299
msgstr ""
299-
"不區分大小寫的字串比較。函式的作用方式幾乎與 :c:func:`!strcmp` 相同,只是它忽"
300-
"略大小寫。"
300+
"不區分大小寫的字串比較。函式的作用方式幾乎與 :c:func:`!strcmp` 和 :c:func:`!strncmp` "
301+
"相同,只是它們忽略大小寫。"
301302

302-
#: ../../c-api/conversion.rst:173
303+
#: ../../c-api/conversion.rst:172
303304
msgid ""
304-
"Case insensitive comparison of strings. The function works almost "
305-
"identically to :c:func:`!strncmp` except that it ignores the case."
305+
"Return ``0`` if the strings are equal, a negative value if *str1* sorts "
306+
"lexicographically before *str2*, or a positive value if it sorts after."
306307
msgstr ""
307-
"不區分大小寫的字串比較。函式的作用方式幾乎與 :c:func:`!strncmp` 相同,只是它"
308-
"忽略大小寫。"
309308

310-
#: ../../c-api/conversion.rst:178
309+
#: ../../c-api/conversion.rst:175
310+
msgid ""
311+
"In the *str1* or *str2* arguments, a NUL byte marks the end of the string. "
312+
"For :c:func:`!PyOS_mystrnicmp`, the *size* argument gives the maximum size "
313+
"of the string, as if NUL was present at the index given by *size*."
314+
msgstr ""
315+
316+
#: ../../c-api/conversion.rst:179
317+
msgid "These functions do not use the locale."
318+
msgstr ""
319+
320+
#: ../../c-api/conversion.rst:185
321+
msgid "Case insensitive comparison of strings."
322+
msgstr "不區分大小寫的字串比較。"
323+
324+
#: ../../c-api/conversion.rst:187
325+
msgid ""
326+
"On Windows, these are aliases of :c:func:`!stricmp` and :c:func:`!strnicmp`, "
327+
"respectively."
328+
msgstr ""
329+
330+
#: ../../c-api/conversion.rst:190
331+
msgid ""
332+
"On other platforms, they are aliases of :c:func:`PyOS_mystricmp` and :c:func:"
333+
"`PyOS_mystrnicmp`, respectively."
334+
msgstr ""
335+
336+
#: ../../c-api/conversion.rst:195
311337
msgid "Character classification and conversion"
312338
msgstr ""
313339

314-
#: ../../c-api/conversion.rst:180
340+
#: ../../c-api/conversion.rst:197
315341
msgid ""
316342
"The following macros provide locale-independent (unlike the C standard "
317343
"library ``ctype.h``) character classification and conversion. The argument "
318344
"must be a signed or unsigned :c:expr:`char`."
319345
msgstr ""
320346

321-
#: ../../c-api/conversion.rst:187
347+
#: ../../c-api/conversion.rst:204
322348
msgid "Return true if the character *c* is an alphanumeric character."
323349
msgstr ""
324350

325-
#: ../../c-api/conversion.rst:192
351+
#: ../../c-api/conversion.rst:209
326352
msgid ""
327353
"Return true if the character *c* is an alphabetic character (``a-z`` and ``A-"
328354
"Z``)."
329355
msgstr ""
330356

331-
#: ../../c-api/conversion.rst:197
357+
#: ../../c-api/conversion.rst:214
332358
msgid "Return true if the character *c* is a decimal digit (``0-9``)."
333359
msgstr ""
334360

335-
#: ../../c-api/conversion.rst:202
361+
#: ../../c-api/conversion.rst:219
336362
msgid "Return true if the character *c* is a lowercase ASCII letter (``a-z``)."
337363
msgstr ""
338364

339-
#: ../../c-api/conversion.rst:207
365+
#: ../../c-api/conversion.rst:224
340366
msgid ""
341367
"Return true if the character *c* is an uppercase ASCII letter (``A-Z``)."
342368
msgstr ""
343369

344-
#: ../../c-api/conversion.rst:212
370+
#: ../../c-api/conversion.rst:229
345371
msgid ""
346372
"Return true if the character *c* is a whitespace character (space, tab, "
347373
"carriage return, newline, vertical tab, or form feed)."
348374
msgstr ""
349375

350-
#: ../../c-api/conversion.rst:218
376+
#: ../../c-api/conversion.rst:235
351377
msgid ""
352378
"Return true if the character *c* is a hexadecimal digit (``0-9``, ``a-f``, "
353379
"and ``A-F``)."
354380
msgstr ""
355381

356-
#: ../../c-api/conversion.rst:224
382+
#: ../../c-api/conversion.rst:241
357383
msgid "Return the lowercase equivalent of the character *c*."
358384
msgstr ""
359385

360-
#: ../../c-api/conversion.rst:229
386+
#: ../../c-api/conversion.rst:246
361387
msgid "Return the uppercase equivalent of the character *c*."
362388
msgstr ""

c-api/datetime.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ msgid ""
129129
"is the same object as :class:`datetime.time` in the Python layer."
130130
msgstr ""
131131
"此 :c:type:`PyTypeObject` 實例代表 Python time 型別,與 Python layer 中的 :"
132-
"class:`datetime.datetime.time` 是同一物件"
132+
"class:`datetime.time` 是同一物件"
133133

134134
#: ../../c-api/datetime.rst:80
135135
msgid ""
@@ -282,7 +282,7 @@ msgstr ""
282282
msgid ""
283283
"Return a :class:`datetime.time` object with the specified hour, minute, "
284284
"second and microsecond."
285-
msgstr "回傳一個有特定時、分、秒、微秒的物件 :class:`datetime.date`。"
285+
msgstr "回傳一個有特定時、分、秒、微秒的物件 :class:`datetime.time`。"
286286

287287
#: ../../c-api/datetime.rst:196
288288
msgid ""

c-api/descriptor.po

Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: Python 3.14\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2025-11-10 00:16+0000\n"
12+
"POT-Creation-Date: 2025-12-02 00:15+0000\n"
1313
"PO-Revision-Date: 2021-12-09 20:56+0800\n"
1414
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -37,57 +37,97 @@ msgstr ""
3737
msgid "The type object for the built-in descriptor types."
3838
msgstr "內建 descriptor 型別的型別物件。"
3939

40+
#: ../../c-api/descriptor.rst:26
41+
msgid ""
42+
"The type object for member descriptor objects created from :c:type:"
43+
"`PyMemberDef` structures. These descriptors expose fields of a C struct as "
44+
"attributes on a type, and correspond to :class:`types.MemberDescriptorType` "
45+
"objects in Python."
46+
msgstr ""
47+
4048
#: ../../c-api/descriptor.rst:35
4149
msgid ""
50+
"The type object for get/set descriptor objects created from :c:type:"
51+
"`PyGetSetDef` structures. These descriptors implement attributes whose value "
52+
"is computed by C getter and setter functions, and are used for many built-in "
53+
"type attributes."
54+
msgstr ""
55+
56+
#: ../../c-api/descriptor.rst:46
57+
msgid ""
58+
"The type object for method descriptor objects created from :c:type:"
59+
"`PyMethodDef` structures. These descriptors expose C functions as methods on "
60+
"a type, and correspond to :class:`types.MemberDescriptorType` objects in "
61+
"Python."
62+
msgstr ""
63+
64+
#: ../../c-api/descriptor.rst:57
65+
msgid ""
66+
"The type object for wrapper descriptor objects created by :c:func:"
67+
"`PyDescr_NewWrapper` and :c:func:`PyWrapper_New`. Wrapper descriptors are "
68+
"used internally to expose special methods implemented via wrapper "
69+
"structures, and appear in Python as :class:`types.WrapperDescriptorType` "
70+
"objects."
71+
msgstr ""
72+
73+
#: ../../c-api/descriptor.rst:69
74+
msgid ""
4275
"Return non-zero if the descriptor object *descr* describes a data attribute, "
4376
"or ``0`` if it describes a method. *descr* must be a descriptor object; "
4477
"there is no error checking."
4578
msgstr ""
4679
"如果 descriptor 物件 *descr* 描述的是一個資料屬性則回傳非零值,或者如果它描述"
4780
"的是一個方法則回傳 ``0``。*descr* 必須為一個 descriptor 物件;沒有錯誤檢查。"
4881

49-
#: ../../c-api/descriptor.rst:44
82+
#: ../../c-api/descriptor.rst:78
5083
msgid "Built-in descriptors"
5184
msgstr "內建描述器"
5285

53-
#: ../../c-api/descriptor.rst:48
86+
#: ../../c-api/descriptor.rst:82
5487
msgid ""
5588
"The type object for super objects. This is the same object as :class:`super` "
5689
"in the Python layer."
5790
msgstr ""
5891

59-
#: ../../c-api/descriptor.rst:54
92+
#: ../../c-api/descriptor.rst:88
6093
msgid ""
6194
"The type of class method objects. This is the same object as :class:"
6295
"`classmethod` in the Python layer."
6396
msgstr ""
6497

65-
#: ../../c-api/descriptor.rst:60
98+
#: ../../c-api/descriptor.rst:94
99+
msgid ""
100+
"The type object for C-level class method descriptor objects. This is the "
101+
"type of the descriptors created for :func:`classmethod` defined in C "
102+
"extension types, and is the same object as :class:`classmethod` in Python."
103+
msgstr ""
104+
105+
#: ../../c-api/descriptor.rst:102
66106
msgid ""
67107
"Create a new :class:`classmethod` object wrapping *callable*. *callable* "
68108
"must be a callable object and must not be ``NULL``."
69109
msgstr ""
70110

71-
#: ../../c-api/descriptor.rst:63
111+
#: ../../c-api/descriptor.rst:105
72112
msgid ""
73113
"On success, this function returns a :term:`strong reference` to a new class "
74114
"method descriptor. On failure, this function returns ``NULL`` with an "
75115
"exception set."
76116
msgstr ""
77117

78-
#: ../../c-api/descriptor.rst:70
118+
#: ../../c-api/descriptor.rst:112
79119
msgid ""
80120
"The type of static method objects. This is the same object as :class:"
81121
"`staticmethod` in the Python layer."
82122
msgstr ""
83123

84-
#: ../../c-api/descriptor.rst:76
124+
#: ../../c-api/descriptor.rst:118
85125
msgid ""
86126
"Create a new :class:`staticmethod` object wrapping *callable*. *callable* "
87127
"must be a callable object and must not be ``NULL``."
88128
msgstr ""
89129

90-
#: ../../c-api/descriptor.rst:79
130+
#: ../../c-api/descriptor.rst:121
91131
msgid ""
92132
"On success, this function returns a :term:`strong reference` to a new static "
93133
"method descriptor. On failure, this function returns ``NULL`` with an "

0 commit comments

Comments
 (0)