Skip to content

Commit b85e653

Browse files
sync with cpython 68b501db
1 parent f9c2265 commit b85e653

13 files changed

Lines changed: 782 additions & 738 deletions

File tree

c-api/bytes.po

Lines changed: 22 additions & 21 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-03-28 00:21+0000\n"
9+
"POT-Creation-Date: 2026-07-02 00:39+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-"
@@ -306,55 +306,56 @@ msgstr ""
306306
#: ../../c-api/bytes.rst:182
307307
msgid ""
308308
"Create a new bytes object in *\\*bytes* containing the contents of *newpart* "
309-
"appended to *bytes*; the caller will own the new reference. The reference "
310-
"to the old value of *bytes* will be stolen. If the new object cannot be "
311-
"created, the old reference to *bytes* will still be discarded and the value "
312-
"of *\\*bytes* will be set to ``NULL``; the appropriate exception will be set."
309+
"appended to *bytes*; the caller will own the new reference. The reference to "
310+
"the old value of *bytes* will be \":term:`stolen <steal>`\". If the new "
311+
"object cannot be created, the old reference to *bytes* will still be "
312+
"\"stolen\", the value of *\\*bytes* will be set to ``NULL``, and the "
313+
"appropriate exception will be set."
313314
msgstr ""
314315

315-
#: ../../c-api/bytes.rst:189 ../../c-api/bytes.rst:199
316+
#: ../../c-api/bytes.rst:190 ../../c-api/bytes.rst:200
316317
msgid ""
317318
"If *newpart* implements the buffer protocol, then the buffer must not be "
318319
"mutated while the new bytes object is being created."
319320
msgstr ""
320321

321-
#: ../../c-api/bytes.rst:194
322+
#: ../../c-api/bytes.rst:195
322323
msgid ""
323324
"Create a new bytes object in *\\*bytes* containing the contents of *newpart* "
324325
"appended to *bytes*. This version releases the :term:`strong reference` to "
325326
"*newpart* (i.e. decrements its reference count)."
326327
msgstr ""
327328

328-
#: ../../c-api/bytes.rst:205
329+
#: ../../c-api/bytes.rst:206
329330
msgid "Similar to ``sep.join(iterable)`` in Python."
330331
msgstr "類似 Python 中的 ``sep.join(iterable)``。"
331332

332-
#: ../../c-api/bytes.rst:207
333+
#: ../../c-api/bytes.rst:208
333334
msgid ""
334335
"*sep* must be Python :class:`bytes` object. (Note that :c:func:"
335336
"`PyUnicode_Join` accepts ``NULL`` separator and treats it as a space, "
336337
"whereas :c:func:`PyBytes_Join` doesn't accept ``NULL`` separator.)"
337338
msgstr ""
338339

339-
#: ../../c-api/bytes.rst:212
340+
#: ../../c-api/bytes.rst:213
340341
msgid ""
341342
"*iterable* must be an iterable object yielding objects that implement the :"
342343
"ref:`buffer protocol <bufferobjects>`."
343344
msgstr ""
344345

345-
#: ../../c-api/bytes.rst:215
346+
#: ../../c-api/bytes.rst:216
346347
msgid ""
347348
"On success, return a new :class:`bytes` object. On error, set an exception "
348349
"and return ``NULL``."
349350
msgstr ""
350351

351-
#: ../../c-api/bytes.rst:221
352+
#: ../../c-api/bytes.rst:222
352353
msgid ""
353354
"If *iterable* objects implement the buffer protocol, then the buffers must "
354355
"not be mutated while the new bytes object is being created."
355356
msgstr ""
356357

357-
#: ../../c-api/bytes.rst:226
358+
#: ../../c-api/bytes.rst:227
358359
msgid ""
359360
"Resize a bytes object. *newsize* will be the new length of the bytes object. "
360361
"You can think of it as creating a new bytes object and destroying the old "
@@ -366,19 +367,19 @@ msgid ""
366367
"``NULL``, :exc:`MemoryError` is set, and ``-1`` is returned."
367368
msgstr ""
368369

369-
#: ../../c-api/bytes.rst:240
370+
#: ../../c-api/bytes.rst:241
370371
msgid ""
371372
"Get the string representation of *bytes*. This function is currently used to "
372373
"implement :meth:`!bytes.__repr__` in Python."
373374
msgstr ""
374375

375-
#: ../../c-api/bytes.rst:243
376+
#: ../../c-api/bytes.rst:244
376377
msgid ""
377378
"This function does not do type checking; it is undefined behavior to pass "
378379
"*bytes* as a non-bytes object or ``NULL``."
379380
msgstr ""
380381

381-
#: ../../c-api/bytes.rst:246
382+
#: ../../c-api/bytes.rst:247
382383
msgid ""
383384
"If *smartquotes* is true, the representation will use a double-quoted string "
384385
"instead of single-quoted string when single-quotes are present in *bytes*. "
@@ -387,33 +388,33 @@ msgid ""
387388
"is false."
388389
msgstr ""
389390

390-
#: ../../c-api/bytes.rst:252
391+
#: ../../c-api/bytes.rst:253
391392
msgid ""
392393
"On success, this function returns a :term:`strong reference` to a :class:"
393394
"`str` object containing the representation. On failure, this returns "
394395
"``NULL`` with an exception set."
395396
msgstr ""
396397

397-
#: ../../c-api/bytes.rst:259
398+
#: ../../c-api/bytes.rst:260
398399
msgid ""
399400
"Unescape a backslash-escaped string *s*. *s* must not be ``NULL``. *len* "
400401
"must be the size of *s*."
401402
msgstr ""
402403

403-
#: ../../c-api/bytes.rst:262
404+
#: ../../c-api/bytes.rst:263
404405
msgid ""
405406
"*errors* must be one of ``\"strict\"``, ``\"replace\"``, or ``\"ignore\"``. "
406407
"If *errors* is ``NULL``, then ``\"strict\"`` is used by default."
407408
msgstr ""
408409

409-
#: ../../c-api/bytes.rst:265
410+
#: ../../c-api/bytes.rst:266
410411
msgid ""
411412
"On success, this function returns a :term:`strong reference` to a Python :"
412413
"class:`bytes` object containing the unescaped string. On failure, this "
413414
"function returns ``NULL`` with an exception set."
414415
msgstr ""
415416

416-
#: ../../c-api/bytes.rst:269
417+
#: ../../c-api/bytes.rst:270
417418
msgid "*unicode* and *recode_encoding* are now unused."
418419
msgstr ""
419420

c-api/dict.po

Lines changed: 3 additions & 3 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-05-09 00:33+0000\n"
11+
"POT-Creation-Date: 2026-07-02 00:39+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-"
@@ -107,8 +107,8 @@ msgstr "回傳一個新的字典,包含與 *p* 相同的鍵值對。"
107107
msgid ""
108108
"Insert *val* into the dictionary *p* with a key of *key*. *key* must be :"
109109
"term:`hashable`; if it isn't, :exc:`TypeError` will be raised. Return ``0`` "
110-
"on success or ``-1`` on failure. This function *does not* steal a reference "
111-
"to *val*."
110+
"on success or ``-1`` on failure. This function *does not* \":term:`steal`\" "
111+
"a reference to *val*."
112112
msgstr ""
113113

114114
#: ../../c-api/dict.rst:103

0 commit comments

Comments
 (0)