Skip to content

Commit 84daa78

Browse files
pydoc-zh-tw[bot]github-actions[bot]mattwang44
authored
Sync with CPython 3.13 (#1080)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Matt Wang <[email protected]>
1 parent 3731dfb commit 84daa78

17 files changed

+1774
-1682
lines changed

c-api/capsule.po

Lines changed: 25 additions & 11 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-09-01 22:24+0800\n"
10+
"POT-Creation-Date: 2025-06-29 00:17+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:30+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -150,15 +150,29 @@ msgstr ""
150150

151151
#: ../../c-api/capsule.rst:108
152152
msgid ""
153+
"This function splits *name* on the ``.`` character, and imports the first "
154+
"element. It then processes further elements using attribute lookups."
155+
msgstr ""
156+
157+
#: ../../c-api/capsule.rst:111
158+
msgid ""
153159
"Return the capsule's internal *pointer* on success. On failure, set an "
154160
"exception and return ``NULL``."
155161
msgstr ""
156162

157-
#: ../../c-api/capsule.rst:111
163+
#: ../../c-api/capsule.rst:116
164+
msgid ""
165+
"If *name* points to an attribute of some submodule or subpackage, this "
166+
"submodule or subpackage must be previously imported using other means (for "
167+
"example, by using :c:func:`PyImport_ImportModule`) for the attribute lookups "
168+
"to succeed."
169+
msgstr ""
170+
171+
#: ../../c-api/capsule.rst:121
158172
msgid "*no_block* has no effect anymore."
159173
msgstr ""
160174

161-
#: ../../c-api/capsule.rst:117
175+
#: ../../c-api/capsule.rst:127
162176
msgid ""
163177
"Determines whether or not *capsule* is a valid capsule. A valid capsule is "
164178
"non-``NULL``, passes :c:func:`PyCapsule_CheckExact`, has a non-``NULL`` "
@@ -167,41 +181,41 @@ msgid ""
167181
"compared.)"
168182
msgstr ""
169183

170-
#: ../../c-api/capsule.rst:123
184+
#: ../../c-api/capsule.rst:133
171185
msgid ""
172186
"In other words, if :c:func:`PyCapsule_IsValid` returns a true value, calls "
173187
"to any of the accessors (any function starting with ``PyCapsule_Get``) are "
174188
"guaranteed to succeed."
175189
msgstr ""
176190

177-
#: ../../c-api/capsule.rst:127
191+
#: ../../c-api/capsule.rst:137
178192
msgid ""
179193
"Return a nonzero value if the object is valid and matches the name passed "
180194
"in. Return ``0`` otherwise. This function will not fail."
181195
msgstr ""
182196

183-
#: ../../c-api/capsule.rst:133
197+
#: ../../c-api/capsule.rst:143
184198
msgid "Set the context pointer inside *capsule* to *context*."
185199
msgstr ""
186200

187-
#: ../../c-api/capsule.rst:135 ../../c-api/capsule.rst:142
188-
#: ../../c-api/capsule.rst:151 ../../c-api/capsule.rst:159
201+
#: ../../c-api/capsule.rst:145 ../../c-api/capsule.rst:152
202+
#: ../../c-api/capsule.rst:161 ../../c-api/capsule.rst:169
189203
msgid ""
190204
"Return ``0`` on success. Return nonzero and set an exception on failure."
191205
msgstr ""
192206

193-
#: ../../c-api/capsule.rst:140
207+
#: ../../c-api/capsule.rst:150
194208
msgid "Set the destructor inside *capsule* to *destructor*."
195209
msgstr ""
196210

197-
#: ../../c-api/capsule.rst:147
211+
#: ../../c-api/capsule.rst:157
198212
msgid ""
199213
"Set the name inside *capsule* to *name*. If non-``NULL``, the name must "
200214
"outlive the capsule. If the previous *name* stored in the capsule was not "
201215
"``NULL``, no attempt is made to free it."
202216
msgstr ""
203217

204-
#: ../../c-api/capsule.rst:156
218+
#: ../../c-api/capsule.rst:166
205219
msgid ""
206220
"Set the void pointer inside *capsule* to *pointer*. The pointer may not be "
207221
"``NULL``."

deprecations/c-api-pending-removal-in-3.15.po

Lines changed: 35 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: Python 3.13\n"
77
"Report-Msgid-Bugs-To: \n"
8-
"POT-Creation-Date: 2024-10-22 00:13+0000\n"
8+
"POT-Creation-Date: 2025-07-03 00:17+0000\n"
99
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1010
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1111
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -20,77 +20,73 @@ msgid "Pending Removal in Python 3.15"
2020
msgstr "Python 3.15 中待移除的項目"
2121

2222
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:4
23-
msgid "The bundled copy of ``libmpdecimal``."
24-
msgstr "``libmpdecimal`` 的打包副本 (bundled copy)。"
25-
26-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:5
2723
msgid ""
28-
"The :c:func:`PyImport_ImportModuleNoBlock`: "
29-
"Use :c:func:`PyImport_ImportModule` instead."
24+
"The :c:func:`PyImport_ImportModuleNoBlock`: Use :c:func:"
25+
"`PyImport_ImportModule` instead."
3026
msgstr ""
31-
":c:func:`PyImport_ImportModuleNoBlock`:請改"
32-
"用 :c:func:`PyImport_ImportModule`。"
27+
":c:func:`PyImport_ImportModuleNoBlock`:請改用 :c:func:"
28+
"`PyImport_ImportModule`。"
3329

34-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:7
30+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:6
3531
msgid ""
36-
":c:func:`PyWeakref_GetObject` and :c:func:`PyWeakref_GET_OBJECT`: "
37-
"Use :c:func:`PyWeakref_GetRef` instead."
32+
":c:func:`PyWeakref_GetObject` and :c:func:`PyWeakref_GET_OBJECT`: Use :c:"
33+
"func:`PyWeakref_GetRef` instead."
3834
msgstr ""
39-
":c:func:`PyWeakref_GetObject` 和 :c:func:`PyWeakref_GET_OBJECT`:請改"
40-
"用 :c:func:`PyWeakref_GetRef`。"
35+
":c:func:`PyWeakref_GetObject` 和 :c:func:`PyWeakref_GET_OBJECT`:請改用 :c:"
36+
"func:`PyWeakref_GetRef`。"
4137

42-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:9
38+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:8
4339
msgid ""
44-
":c:type:`Py_UNICODE` type and the :c:macro:`!Py_UNICODE_WIDE` macro: "
45-
"Use :c:type:`wchar_t` instead."
40+
":c:type:`Py_UNICODE` type and the :c:macro:`!Py_UNICODE_WIDE` macro: Use :c:"
41+
"type:`wchar_t` instead."
4642
msgstr ""
47-
":c:type:`Py_UNICODE` 型別與 :c:macro:`!Py_UNICODE_WIDE` 巨集:請改"
48-
"用 :c:type:`wchar_t`。"
43+
":c:type:`Py_UNICODE` 型別與 :c:macro:`!Py_UNICODE_WIDE` 巨集:請改用 :c:type:"
44+
"`wchar_t`。"
4945

50-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:11
46+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:10
5147
msgid "Python initialization functions:"
5248
msgstr "Python 初始化函式:"
5349

54-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:13
50+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:12
5551
msgid ""
5652
":c:func:`PySys_ResetWarnOptions`: Clear :data:`sys.warnoptions` and :data:`!"
5753
"warnings.filters` instead."
5854
msgstr ""
59-
":c:func:`PySys_ResetWarnOptions`:請改為清除 :data:`sys.warnoptions` "
60-
"和 :data:`!warnings.filters`。"
55+
":c:func:`PySys_ResetWarnOptions`:請改為清除 :data:`sys.warnoptions` 和 :"
56+
"data:`!warnings.filters`。"
6157

62-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:15
58+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:14
6359
msgid ""
64-
":c:func:`Py_GetExecPrefix`: Get :data:`sys.base_exec_prefix` "
65-
"and :data:`sys.exec_prefix` instead."
60+
":c:func:`Py_GetExecPrefix`: Get :data:`sys.base_exec_prefix` and :data:`sys."
61+
"exec_prefix` instead."
6662
msgstr ""
67-
":c:func:`Py_GetExecPrefix`:請改用 :data:`sys.base_exec_prefix` "
68-
"與 :data:`sys.exec_prefix`。"
63+
":c:func:`Py_GetExecPrefix`:請改用 :data:`sys.base_exec_prefix` 與 :data:"
64+
"`sys.exec_prefix`。"
6965

70-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:17
66+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:16
7167
msgid ":c:func:`Py_GetPath`: Get :data:`sys.path` instead."
7268
msgstr ":c:func:`Py_GetPath`:請改用 :data:`sys.path`。"
7369

74-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:19
70+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:18
7571
msgid ""
7672
":c:func:`Py_GetPrefix`: Get :data:`sys.base_prefix` and :data:`sys.prefix` "
7773
"instead."
7874
msgstr ""
79-
":c:func:`Py_GetPrefix`:請改用 :data:`sys.base_prefix` "
80-
"與 :data:`sys.prefix`。"
75+
":c:func:`Py_GetPrefix`:請改用 :data:`sys.base_prefix` 與 :data:`sys."
76+
"prefix`。"
8177

82-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:21
78+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:20
8379
msgid ":c:func:`Py_GetProgramFullPath`: Get :data:`sys.executable` instead."
8480
msgstr ":c:func:`Py_GetProgramFullPath`:請改用 :data:`sys.executable`。"
8581

86-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:23
82+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:22
8783
msgid ":c:func:`Py_GetProgramName`: Get :data:`sys.executable` instead."
8884
msgstr ":c:func:`Py_GetProgramName`:請改用 :data:`sys.executable`。"
8985

90-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:25
86+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:24
9187
msgid ""
92-
":c:func:`Py_GetPythonHome`: Get :c:member:`PyConfig.home` or "
93-
"the :envvar:`PYTHONHOME` environment variable instead."
88+
":c:func:`Py_GetPythonHome`: Get :c:member:`PyConfig.home` or the :envvar:"
89+
"`PYTHONHOME` environment variable instead."
9490
msgstr ""
95-
":c:func:`Py_GetPythonHome`:請改用 :c:member:`PyConfig.home` "
96-
"或 :envvar:`PYTHONHOME` 環境變數。"
91+
":c:func:`Py_GetPythonHome`:請改用 :c:member:`PyConfig.home` 或 :envvar:"
92+
"`PYTHONHOME` 環境變數。"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (C) 2001-2025, Python Software Foundation
2+
# This file is distributed under the same license as the Python package.
3+
#
4+
msgid ""
5+
msgstr ""
6+
"Project-Id-Version: Python 3.13\n"
7+
"Report-Msgid-Bugs-To: \n"
8+
"POT-Creation-Date: 2025-07-03 00:17+0000\n"
9+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
10+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
11+
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
12+
"tw)\n"
13+
"Language: zh_TW\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
18+
#: ../../deprecations/c-api-pending-removal-in-3.16.rst:2
19+
msgid "Pending removal in Python 3.16"
20+
msgstr "Python 3.16 中待移除的項目"
21+
22+
#: ../../deprecations/c-api-pending-removal-in-3.16.rst:4
23+
msgid "The bundled copy of ``libmpdec``."
24+
msgstr "``libmpdecimal`` 的打包副本 (bundled copy)。"

deprecations/index.po

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: Python 3.13\n"
77
"Report-Msgid-Bugs-To: \n"
8-
"POT-Creation-Date: 2025-06-27 07:36+0000\n"
8+
"POT-Creation-Date: 2025-07-03 00:17+0000\n"
99
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1010
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1111
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -437,11 +437,10 @@ msgid ""
437437
"since Python 3.13. Use ``class TD(TypedDict): pass`` or ``TD = "
438438
"TypedDict(\"TD\", {})`` to create a TypedDict with zero field."
439439
msgstr ""
440-
"當使用 :class:`~typing.TypedDict` 的函式語法時,未傳遞值給 *fields* "
441-
"參數 (``TD = TypedDict(\"TD\")``) 或傳遞 ``None`` (``TD = "
442-
"TypedDict(\"TD\", None)``) 的做法自 Python 3.13 起已被棄用。請"
443-
"使用 ``class TD(TypedDict): pass`` 或 ``TD = "
444-
"TypedDict(\"TD\", {})`` 來建立具有零個欄位的 TypedDict。"
440+
"當使用 :class:`~typing.TypedDict` 的函式語法時,未傳遞值給 *fields* 參數 "
441+
"(``TD = TypedDict(\"TD\")``) 或傳遞 ``None`` (``TD = TypedDict(\"TD\", "
442+
"None)``) 的做法自 Python 3.13 起已被棄用。請使用 ``class TD(TypedDict): "
443+
"pass`` 或 ``TD = TypedDict(\"TD\", {})`` 來建立具有零個欄位的 TypedDict。"
445444

446445
#: ../../deprecations/pending-removal-in-3.15.rst:95
447446
msgid ""
@@ -1165,74 +1164,70 @@ msgstr ""
11651164
"func:`Py_PreInitialize`)"
11661165

11671166
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:4
1168-
msgid "The bundled copy of ``libmpdecimal``."
1169-
msgstr "``libmpdecimal`` 的打包副本 (bundled copy)。"
1170-
1171-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:5
11721167
msgid ""
11731168
"The :c:func:`PyImport_ImportModuleNoBlock`: Use :c:func:"
11741169
"`PyImport_ImportModule` instead."
11751170
msgstr ""
11761171
":c:func:`PyImport_ImportModuleNoBlock`:請改用 :c:func:"
11771172
"`PyImport_ImportModule`。"
11781173

1179-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:7
1174+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:6
11801175
msgid ""
11811176
":c:func:`PyWeakref_GetObject` and :c:func:`PyWeakref_GET_OBJECT`: Use :c:"
11821177
"func:`PyWeakref_GetRef` instead."
11831178
msgstr ""
11841179
":c:func:`PyWeakref_GetObject` 和 :c:func:`PyWeakref_GET_OBJECT`:請改用 :c:"
11851180
"func:`PyWeakref_GetRef`。"
11861181

1187-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:9
1182+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:8
11881183
msgid ""
11891184
":c:type:`Py_UNICODE` type and the :c:macro:`!Py_UNICODE_WIDE` macro: Use :c:"
11901185
"type:`wchar_t` instead."
11911186
msgstr ""
11921187
":c:type:`Py_UNICODE` 型別與 :c:macro:`!Py_UNICODE_WIDE` 巨集:請改用 :c:type:"
11931188
"`wchar_t`。"
11941189

1195-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:11
1190+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:10
11961191
msgid "Python initialization functions:"
11971192
msgstr "Python 初始化函式:"
11981193

1199-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:13
1194+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:12
12001195
msgid ""
12011196
":c:func:`PySys_ResetWarnOptions`: Clear :data:`sys.warnoptions` and :data:`!"
12021197
"warnings.filters` instead."
12031198
msgstr ""
12041199
":c:func:`PySys_ResetWarnOptions`:請改為清除 :data:`sys.warnoptions` 和 :"
12051200
"data:`!warnings.filters`。"
12061201

1207-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:15
1202+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:14
12081203
msgid ""
12091204
":c:func:`Py_GetExecPrefix`: Get :data:`sys.base_exec_prefix` and :data:`sys."
12101205
"exec_prefix` instead."
12111206
msgstr ""
12121207
":c:func:`Py_GetExecPrefix`:請改用 :data:`sys.base_exec_prefix` 與 :data:"
12131208
"`sys.exec_prefix`。"
12141209

1215-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:17
1210+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:16
12161211
msgid ":c:func:`Py_GetPath`: Get :data:`sys.path` instead."
12171212
msgstr ":c:func:`Py_GetPath`:請改用 :data:`sys.path`。"
12181213

1219-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:19
1214+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:18
12201215
msgid ""
12211216
":c:func:`Py_GetPrefix`: Get :data:`sys.base_prefix` and :data:`sys.prefix` "
12221217
"instead."
12231218
msgstr ""
12241219
":c:func:`Py_GetPrefix`:請改用 :data:`sys.base_prefix` 與 :data:`sys."
12251220
"prefix`。"
12261221

1227-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:21
1222+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:20
12281223
msgid ":c:func:`Py_GetProgramFullPath`: Get :data:`sys.executable` instead."
12291224
msgstr ":c:func:`Py_GetProgramFullPath`:請改用 :data:`sys.executable`。"
12301225

1231-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:23
1226+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:22
12321227
msgid ":c:func:`Py_GetProgramName`: Get :data:`sys.executable` instead."
12331228
msgstr ":c:func:`Py_GetProgramName`:請改用 :data:`sys.executable`。"
12341229

1235-
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:25
1230+
#: ../../deprecations/c-api-pending-removal-in-3.15.rst:24
12361231
msgid ""
12371232
":c:func:`Py_GetPythonHome`: Get :c:member:`PyConfig.home` or the :envvar:"
12381233
"`PYTHONHOME` environment variable instead."
@@ -1371,5 +1366,8 @@ msgstr ""
13711366
msgid ":c:func:`PyThread_ReInitTLS`: Unneeded since Python 3.7."
13721367
msgstr ":c:func:`PyThread_ReInitTLS`:自 Python 3.7 起不再需要。"
13731368

1369+
#~ msgid "The bundled copy of ``libmpdecimal``."
1370+
#~ msgstr "``libmpdecimal`` 的打包副本 (bundled copy)。"
1371+
13741372
#~ msgid ":mod:`array`'s ``'u'`` format code (:gh:`57281`)"
13751373
#~ msgstr ":mod:`array` 的 ``'u'`` 格式碼 (:gh:`57281`)"

howto/functional.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: 2025-06-27 07:36+0000\n"
10+
"POT-Creation-Date: 2025-07-04 00:16+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:36+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -1970,7 +1970,7 @@ msgstr ""
19701970

19711971
#: ../../howto/functional.rst:1220
19721972
msgid ""
1973-
"https://www.defmacro.org/ramblings/fp.html: A general introduction to "
1973+
"https://defmacro.org/2006/06/19/fp.html: A general introduction to "
19741974
"functional programming that uses Java examples and has a lengthy historical "
19751975
"introduction."
19761976
msgstr ""

0 commit comments

Comments
 (0)