Sync with CPython 3.14 (#1214) · python/python-docs-zh-tw@5c9e7b5 · GitHub
Skip to content

Commit 5c9e7b5

Browse files
pydoc-zh-tw[bot]github-actions[bot]Copilotmattwang44
authored
Sync with CPython 3.14 (#1214)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com> Co-authored-by: W. H. Wang <mattwang44@gmail.com>
1 parent f185b15 commit 5c9e7b5

58 files changed

Lines changed: 8253 additions & 6990 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/bytearray.po

Lines changed: 29 additions & 16 deletions

c-api/bytes.po

Lines changed: 42 additions & 24 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: 2026-01-22 16:55+0000\n"
9+
"POT-Creation-Date: 2026-03-28 00:21+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-"
@@ -245,15 +245,21 @@ msgid ""
245245
"protocol."
246246
msgstr ""
247247

248-
#: ../../c-api/bytes.rst:129
248+
#: ../../c-api/bytes.rst:127
249+
msgid ""
250+
"If the object implements the buffer protocol, then the buffer must not be "
251+
"mutated while the bytes object is being created."
252+
msgstr ""
253+
254+
#: ../../c-api/bytes.rst:133
249255
msgid "Return the length of the bytes in bytes object *o*."
250256
msgstr ""
251257

252-
#: ../../c-api/bytes.rst:134
258+
#: ../../c-api/bytes.rst:138
253259
msgid "Similar to :c:func:`PyBytes_Size`, but without error checking."
254260
msgstr "和 :c:func:`PyBytes_Size` 類似,但不進行錯誤檢查。"
255261

256-
#: ../../c-api/bytes.rst:139
262+
#: ../../c-api/bytes.rst:143
257263
msgid ""
258264
"Return a pointer to the contents of *o*. The pointer refers to the internal "
259265
"buffer of *o*, which consists of ``len(o) + 1`` bytes. The last byte in the "
@@ -264,24 +270,24 @@ msgid ""
264270
"`PyBytes_AsString` returns ``NULL`` and raises :exc:`TypeError`."
265271
msgstr ""
266272

267-
#: ../../c-api/bytes.rst:151
273+
#: ../../c-api/bytes.rst:155
268274
msgid "Similar to :c:func:`PyBytes_AsString`, but without error checking."
269275
msgstr "和 :c:func:`PyBytes_AsString` 類似,但不進行錯誤檢查。"
270276

271-
#: ../../c-api/bytes.rst:156
277+
#: ../../c-api/bytes.rst:160
272278
msgid ""
273279
"Return the null-terminated contents of the object *obj* through the output "
274280
"variables *buffer* and *length*. Returns ``0`` on success."
275281
msgstr ""
276282

277-
#: ../../c-api/bytes.rst:160
283+
#: ../../c-api/bytes.rst:164
278284
msgid ""
279285
"If *length* is ``NULL``, the bytes object may not contain embedded null "
280286
"bytes; if it does, the function returns ``-1`` and a :exc:`ValueError` is "
281287
"raised."
282288
msgstr ""
283289

284-
#: ../../c-api/bytes.rst:164
290+
#: ../../c-api/bytes.rst:168
285291
msgid ""
286292
"The buffer refers to an internal buffer of *obj*, which includes an "
287293
"additional null byte at the end (not counted in *length*). The data must "
@@ -291,13 +297,13 @@ msgid ""
291297
"returns ``-1`` and raises :exc:`TypeError`."
292298
msgstr ""
293299

294-
#: ../../c-api/bytes.rst:171
300+
#: ../../c-api/bytes.rst:175
295301
msgid ""
296302
"Previously, :exc:`TypeError` was raised when embedded null bytes were "
297303
"encountered in the bytes object."
298304
msgstr ""
299305

300-
#: ../../c-api/bytes.rst:178
306+
#: ../../c-api/bytes.rst:182
301307
msgid ""
302308
"Create a new bytes object in *\\*bytes* containing the contents of *newpart* "
303309
"appended to *bytes*; the caller will own the new reference. The reference "
@@ -306,37 +312,49 @@ msgid ""
306312
"of *\\*bytes* will be set to ``NULL``; the appropriate exception will be set."
307313
msgstr ""
308314

309-
#: ../../c-api/bytes.rst:187
315+
#: ../../c-api/bytes.rst:189 ../../c-api/bytes.rst:199
316+
msgid ""
317+
"If *newpart* implements the buffer protocol, then the buffer must not be "
318+
"mutated while the new bytes object is being created."
319+
msgstr ""
320+
321+
#: ../../c-api/bytes.rst:194
310322
msgid ""
311323
"Create a new bytes object in *\\*bytes* containing the contents of *newpart* "
312324
"appended to *bytes*. This version releases the :term:`strong reference` to "
313325
"*newpart* (i.e. decrements its reference count)."
314326
msgstr ""
315327

316-
#: ../../c-api/bytes.rst:194
328+
#: ../../c-api/bytes.rst:205
317329
msgid "Similar to ``sep.join(iterable)`` in Python."
318330
msgstr "類似 Python 中的 ``sep.join(iterable)``。"
319331

320-
#: ../../c-api/bytes.rst:196
332+
#: ../../c-api/bytes.rst:207
321333
msgid ""
322334
"*sep* must be Python :class:`bytes` object. (Note that :c:func:"
323335
"`PyUnicode_Join` accepts ``NULL`` separator and treats it as a space, "
324336
"whereas :c:func:`PyBytes_Join` doesn't accept ``NULL`` separator.)"
325337
msgstr ""
326338

327-
#: ../../c-api/bytes.rst:201
339+
#: ../../c-api/bytes.rst:212
328340
msgid ""
329341
"*iterable* must be an iterable object yielding objects that implement the :"
330342
"ref:`buffer protocol <bufferobjects>`."
331343
msgstr ""
332344

333-
#: ../../c-api/bytes.rst:204
345+
#: ../../c-api/bytes.rst:215
334346
msgid ""
335347
"On success, return a new :class:`bytes` object. On error, set an exception "
336348
"and return ``NULL``."
337349
msgstr ""
338350

339-
#: ../../c-api/bytes.rst:212
351+
#: ../../c-api/bytes.rst:221
352+
msgid ""
353+
"If *iterable* objects implement the buffer protocol, then the buffers must "
354+
"not be mutated while the new bytes object is being created."
355+
msgstr ""
356+
357+
#: ../../c-api/bytes.rst:226
340358
msgid ""
341359
"Resize a bytes object. *newsize* will be the new length of the bytes object. "
342360
"You can think of it as creating a new bytes object and destroying the old "
@@ -348,19 +366,19 @@ msgid ""
348366
"``NULL``, :exc:`MemoryError` is set, and ``-1`` is returned."
349367
msgstr ""
350368

351-
#: ../../c-api/bytes.rst:226
369+
#: ../../c-api/bytes.rst:240
352370
msgid ""
353371
"Get the string representation of *bytes*. This function is currently used to "
354372
"implement :meth:`!bytes.__repr__` in Python."
355373
msgstr ""
356374

357-
#: ../../c-api/bytes.rst:229
375+
#: ../../c-api/bytes.rst:243
358376
msgid ""
359377
"This function does not do type checking; it is undefined behavior to pass "
360378
"*bytes* as a non-bytes object or ``NULL``."
361379
msgstr ""
362380

363-
#: ../../c-api/bytes.rst:232
381+
#: ../../c-api/bytes.rst:246
364382
msgid ""
365383
"If *smartquotes* is true, the representation will use a double-quoted string "
366384
"instead of single-quoted string when single-quotes are present in *bytes*. "
@@ -369,33 +387,33 @@ msgid ""
369387
"is false."
370388
msgstr ""
371389

372-
#: ../../c-api/bytes.rst:238
390+
#: ../../c-api/bytes.rst:252
373391
msgid ""
374392
"On success, this function returns a :term:`strong reference` to a :class:"
375393
"`str` object containing the representation. On failure, this returns "
376394
"``NULL`` with an exception set."
377395
msgstr ""
378396

379-
#: ../../c-api/bytes.rst:245
397+
#: ../../c-api/bytes.rst:259
380398
msgid ""
381399
"Unescape a backslash-escaped string *s*. *s* must not be ``NULL``. *len* "
382400
"must be the size of *s*."
383401
msgstr ""
384402

385-
#: ../../c-api/bytes.rst:248
403+
#: ../../c-api/bytes.rst:262
386404
msgid ""
387405
"*errors* must be one of ``\"strict\"``, ``\"replace\"``, or ``\"ignore\"``. "
388406
"If *errors* is ``NULL``, then ``\"strict\"`` is used by default."
389407
msgstr ""
390408

391-
#: ../../c-api/bytes.rst:251
409+
#: ../../c-api/bytes.rst:265
392410
msgid ""
393411
"On success, this function returns a :term:`strong reference` to a Python :"
394412
"class:`bytes` object containing the unescaped string. On failure, this "
395413
"function returns ``NULL`` with an exception set."
396414
msgstr ""
397415

398-
#: ../../c-api/bytes.rst:255
416+
#: ../../c-api/bytes.rst:269
399417
msgid "*unicode* and *recode_encoding* are now unused."
400418
msgstr ""
401419

c-api/file.po

Lines changed: 24 additions & 15 deletions

0 commit comments

Comments
 (0)