Skip to content

Commit 6a4a962

Browse files
pydoc-zh-tw[bot]github-actions[bot]mattwang44claudeCopilot
authored
Sync with CPython 3.14 (#1226)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: W. H. Wang <mattwang44@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent b0201c2 commit 6a4a962

81 files changed

Lines changed: 11657 additions & 10641 deletions

Some content is hidden

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

c-api/allocation.po

Lines changed: 19 additions & 19 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-09 17:02+0000\n"
12+
"POT-Creation-Date: 2026-04-23 00:30+0000\n"
1313
"PO-Revision-Date: 2022-10-16 15:35+0800\n"
1414
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -22,7 +22,7 @@ msgstr ""
2222
"X-Generator: Poedit 3.1.1\n"
2323

2424
#: ../../c-api/allocation.rst:6
25-
msgid "Allocating Objects on the Heap"
25+
msgid "Allocating objects on the heap"
2626
msgstr "在 heap 上分配物件"
2727

2828
#: ../../c-api/allocation.rst:17
@@ -132,8 +132,8 @@ msgid "PyObject *foo = PyObject_CallNoArgs((PyObject *)&PyFoo_Type);"
132132
msgstr "PyObject *foo = PyObject_CallNoArgs((PyObject *)&PyFoo_Type);"
133133

134134
#: ../../c-api/allocation.rst:87 ../../c-api/allocation.rst:137
135-
#: ../../c-api/allocation.rst:182 ../../c-api/allocation.rst:184
136-
#: ../../c-api/allocation.rst:186
135+
#: ../../c-api/allocation.rst:184 ../../c-api/allocation.rst:186
136+
#: ../../c-api/allocation.rst:188
137137
msgid ":c:func:`PyObject_Free`"
138138
msgstr ":c:func:`PyObject_Free`"
139139

@@ -214,43 +214,43 @@ msgid "To allocate and create extension modules."
214214
msgstr "分配記憶體和建立擴充模組。"
215215

216216
#: ../../c-api/allocation.rst:157
217-
msgid "Deprecated aliases"
218-
msgstr "被棄用的別名"
217+
msgid "Soft-deprecated aliases"
218+
msgstr "軟性棄用的別名"
219219

220-
#: ../../c-api/allocation.rst:159
220+
#: ../../c-api/allocation.rst:161
221221
msgid ""
222-
"These are :term:`soft deprecated` aliases to existing functions and macros. "
223-
"They exist solely for backwards compatibility."
222+
"These are aliases to existing functions and macros. They exist solely for "
223+
"backwards compatibility."
224224
msgstr ""
225225

226-
#: ../../c-api/allocation.rst:167
227-
msgid "Deprecated alias"
228-
msgstr "已棄用的別名"
226+
#: ../../c-api/allocation.rst:169
227+
msgid "Soft-deprecated alias"
228+
msgstr "軟性棄用的別名"
229229

230-
#: ../../c-api/allocation.rst:168
230+
#: ../../c-api/allocation.rst:170
231231
msgid "Function"
232232
msgstr "函式"
233233

234-
#: ../../c-api/allocation.rst:170
234+
#: ../../c-api/allocation.rst:172
235235
msgid ":c:macro:`PyObject_New`"
236236
msgstr ":c:macro:`PyObject_New`"
237237

238-
#: ../../c-api/allocation.rst:172
238+
#: ../../c-api/allocation.rst:174
239239
msgid ":c:macro:`PyObject_NewVar`"
240240
msgstr ":c:macro:`PyObject_NewVar`"
241241

242-
#: ../../c-api/allocation.rst:174
242+
#: ../../c-api/allocation.rst:176
243243
msgid ":c:func:`PyObject_Init`"
244244
msgstr ":c:func:`PyObject_Init`"
245245

246-
#: ../../c-api/allocation.rst:176
246+
#: ../../c-api/allocation.rst:178
247247
msgid ":c:func:`PyObject_InitVar`"
248248
msgstr ":c:func:`PyObject_InitVar`"
249249

250-
#: ../../c-api/allocation.rst:178
250+
#: ../../c-api/allocation.rst:180
251251
msgid ":c:func:`PyObject_Malloc`"
252252
msgstr ":c:func:`PyObject_Malloc`"
253253

254-
#: ../../c-api/allocation.rst:180
254+
#: ../../c-api/allocation.rst:182
255255
msgid ":c:func:`PyObject_Realloc`"
256256
msgstr ":c:func:`PyObject_Realloc`"

c-api/dict.po

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.14\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2026-04-12 00:25+0000\n"
11+
"POT-Creation-Date: 2026-05-09 00:33+0000\n"
1212
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
1313
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -149,9 +149,10 @@ msgstr ""
149149
msgid "If the key is missing, set *\\*result* to ``NULL`` and return ``0``."
150150
msgstr "如果鍵不存在,將 *\\*result* 設為 ``NULL`` 並回傳 ``0``。"
151151

152-
#: ../../c-api/dict.rst:136 ../../c-api/dict.rst:272
153-
msgid "On error, raise an exception and return ``-1``."
154-
msgstr "錯誤發生時,引發一個例外並回傳 ``-1``。"
152+
#: ../../c-api/dict.rst:136
153+
msgid ""
154+
"On error, raise an exception, set *\\*result* to ``NULL`` and return ``-1``."
155+
msgstr "錯誤發生時,引發一個例外,將 *\\*result* 設為 ``NULL`` 並回傳 ``-1``。"
155156

156157
#: ../../c-api/dict.rst:145
157158
msgid "See also the :c:func:`PyObject_GetItem` function."
@@ -276,6 +277,10 @@ msgid ""
276277
"``NULL``, and return ``0``."
277278
msgstr ""
278279

280+
#: ../../c-api/dict.rst:272
281+
msgid "On error, raise an exception and return ``-1``."
282+
msgstr "錯誤發生時,引發一個例外並回傳 ``-1``。"
283+
279284
#: ../../c-api/dict.rst:274
280285
msgid ""
281286
"Similar to :meth:`dict.pop`, but without the default value and not raising :"

c-api/exceptions.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.14\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2026-02-22 00:18+0000\n"
10+
"POT-Creation-Date: 2026-06-03 00:49+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:05+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -434,7 +434,7 @@ msgstr ""
434434

435435
#: ../../c-api/exceptions.rst:415
436436
msgid ""
437-
"Function similar to :c:func:`PyErr_WarnEx`, but use :c:func:"
437+
"Function similar to :c:func:`PyErr_WarnEx`, but uses :c:func:"
438438
"`PyUnicode_FromFormat` to format the warning message. *format* is an ASCII-"
439439
"encoded string."
440440
msgstr ""

c-api/file.po

Lines changed: 11 additions & 12 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: 2026-03-23 00:22+0000\n"
12+
"POT-Creation-Date: 2026-04-23 00:30+0000\n"
1313
"PO-Revision-Date: 2023-04-24 20:38+0800\n"
1414
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -22,7 +22,7 @@ msgstr ""
2222
"X-Generator: Poedit 3.2.2\n"
2323

2424
#: ../../c-api/file.rst:6
25-
msgid "File Objects"
25+
msgid "File objects"
2626
msgstr "檔案物件 (File Objects)"
2727

2828
#: ../../c-api/file.rst:10
@@ -219,27 +219,26 @@ msgstr ""
219219
"的例外狀況。"
220220

221221
#: ../../c-api/file.rst:140
222-
msgid "Deprecated API"
223-
msgstr "已棄用的 API"
222+
msgid "Soft-deprecated API"
223+
msgstr "軟性棄用的 API"
224224

225-
#: ../../c-api/file.rst:143
225+
#: ../../c-api/file.rst:144
226226
msgid ""
227-
"These are :term:`soft deprecated` APIs that were included in Python's C API "
228-
"by mistake. They are documented solely for completeness; use other "
229-
"``PyFile*`` APIs instead."
227+
"These are APIs that were included in Python's C API by mistake. They are "
228+
"documented solely for completeness; use other ``PyFile*`` APIs instead."
230229
msgstr ""
231-
"這些是被錯誤地包含在 Python C API 中的\\ :term:`軟性棄用 <soft deprecated>` "
232-
"API。它們僅為了完整性而記錄於文件中;請改用其他 ``PyFile*`` API。"
230+
"這些是被錯誤地包含在 Python C API 中的 API。它們僅為了完整性而記錄於文件中;"
231+
"請改用其他 ``PyFile*`` API。"
233232

234-
#: ../../c-api/file.rst:149
233+
#: ../../c-api/file.rst:150
235234
msgid ""
236235
"Use :c:func:`PyFile_FromFd` with defaults (``fd, NULL, \"w\", -1, NULL, "
237236
"NULL, NULL, 0``) instead."
238237
msgstr ""
239238
"請改用帶有預設值 (``fd, NULL, \"w\", -1, NULL, NULL, NULL, 0``) 的 :c:func:"
240239
"`PyFile_FromFd`。"
241240

242-
#: ../../c-api/file.rst:153
241+
#: ../../c-api/file.rst:154
243242
msgid ""
244243
"Type of file-like objects used internally at Python startup when :py:mod:"
245244
"`io` is not yet available. Use Python :py:func:`open` or :c:func:"

c-api/frame.po

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: Python 3.14\n"
77
"Report-Msgid-Bugs-To: \n"
8-
"POT-Creation-Date: 2026-02-28 00:16+0000\n"
8+
"POT-Creation-Date: 2026-04-23 00:30+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-"
@@ -16,7 +16,7 @@ msgstr ""
1616
"Content-Transfer-Encoding: 8bit\n"
1717

1818
#: ../../c-api/frame.rst:4
19-
msgid "Frame Objects"
19+
msgid "Frame objects"
2020
msgstr "Frame 物件"
2121

2222
#: ../../c-api/frame.rst:8
@@ -173,7 +173,7 @@ msgid "Return the line number that *frame* is currently executing."
173173
msgstr ""
174174

175175
#: ../../c-api/frame.rst:151
176-
msgid "Frame Locals Proxies"
176+
msgid "Frame locals proxies"
177177
msgstr ""
178178

179179
#: ../../c-api/frame.rst:155
@@ -198,7 +198,7 @@ msgid "Return non-zero if *obj* is a frame :func:`locals` proxy."
198198
msgstr ""
199199

200200
#: ../../c-api/frame.rst:173
201-
msgid "Legacy Local Variable APIs"
201+
msgid "Legacy local variable APIs"
202202
msgstr ""
203203

204204
#: ../../c-api/frame.rst:175
@@ -207,12 +207,7 @@ msgid ""
207207
"They exist solely for backwards compatibility."
208208
msgstr ""
209209

210-
#: ../../c-api/frame.rst:181 ../../c-api/frame.rst:195
211-
#: ../../c-api/frame.rst:208
212-
msgid "This function is :term:`soft deprecated` and does nothing."
213-
msgstr ""
214-
215-
#: ../../c-api/frame.rst:183
210+
#: ../../c-api/frame.rst:181
216211
msgid ""
217212
"Prior to Python 3.13, this function would copy the :attr:`~frame.f_locals` "
218213
"attribute of *f* to the internal \"fast\" array of local variables, allowing "
@@ -221,51 +216,51 @@ msgid ""
221216
"dictionary."
222217
msgstr ""
223218

224-
#: ../../c-api/frame.rst:189 ../../c-api/frame.rst:202
225-
#: ../../c-api/frame.rst:214
219+
#: ../../c-api/frame.rst:187 ../../c-api/frame.rst:198
220+
#: ../../c-api/frame.rst:208
226221
msgid "This function now does nothing."
227222
msgstr ""
228223

229-
#: ../../c-api/frame.rst:197
224+
#: ../../c-api/frame.rst:193
230225
msgid ""
231226
"Prior to Python 3.13, this function would copy the internal \"fast\" array "
232227
"of local variables (which is used by the interpreter) to the :attr:`~frame."
233228
"f_locals` attribute of *f*, allowing changes in local variables to be "
234229
"visible to frame objects."
235230
msgstr ""
236231

237-
#: ../../c-api/frame.rst:210
232+
#: ../../c-api/frame.rst:204
238233
msgid ""
239234
"Prior to Python 3.13, this function was similar to :c:func:"
240235
"`PyFrame_FastToLocals`, but would return ``0`` on success, and ``-1`` with "
241236
"an exception set on failure."
242237
msgstr ""
243238

244-
#: ../../c-api/frame.rst:219
239+
#: ../../c-api/frame.rst:213
245240
msgid ":pep:`667`"
246241
msgstr ":pep:`667`"
247242

248-
#: ../../c-api/frame.rst:223
249-
msgid "Internal Frames"
243+
#: ../../c-api/frame.rst:217
244+
msgid "Internal frames"
250245
msgstr ""
251246

252-
#: ../../c-api/frame.rst:225
247+
#: ../../c-api/frame.rst:219
253248
msgid "Unless using :pep:`523`, you will not need this."
254249
msgstr ""
255250

256-
#: ../../c-api/frame.rst:229
251+
#: ../../c-api/frame.rst:223
257252
msgid "The interpreter's internal frame representation."
258253
msgstr ""
259254

260-
#: ../../c-api/frame.rst:235
255+
#: ../../c-api/frame.rst:229
261256
msgid "Return a :term:`strong reference` to the code object for the frame."
262257
msgstr ""
263258

264-
#: ../../c-api/frame.rst:242
259+
#: ../../c-api/frame.rst:236
265260
msgid "Return the byte offset into the last executed instruction."
266261
msgstr ""
267262

268-
#: ../../c-api/frame.rst:249
263+
#: ../../c-api/frame.rst:243
269264
msgid ""
270265
"Return the currently executing line number, or -1 if there is no line number."
271266
msgstr ""

0 commit comments

Comments
 (0)