66msgstr ""
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."
246246msgstr ""
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
249255msgid "Return the length of the bytes in bytes object *o*."
250256msgstr ""
251257
252- #: ../../c-api/bytes.rst:134
258+ #: ../../c-api/bytes.rst:138
253259msgid "Similar to :c:func:`PyBytes_Size`, but without error checking."
254260msgstr "和 :c:func:`PyBytes_Size` 類似,但不進行錯誤檢查。"
255261
256- #: ../../c-api/bytes.rst:139
262+ #: ../../c-api/bytes.rst:143
257263msgid ""
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`."
265271msgstr ""
266272
267- #: ../../c-api/bytes.rst:151
273+ #: ../../c-api/bytes.rst:155
268274msgid "Similar to :c:func:`PyBytes_AsString`, but without error checking."
269275msgstr "和 :c:func:`PyBytes_AsString` 類似,但不進行錯誤檢查。"
270276
271- #: ../../c-api/bytes.rst:156
277+ #: ../../c-api/bytes.rst:160
272278msgid ""
273279"Return the null-terminated contents of the object *obj* through the output "
274280"variables *buffer* and *length*. Returns ``0`` on success."
275281msgstr ""
276282
277- #: ../../c-api/bytes.rst:160
283+ #: ../../c-api/bytes.rst:164
278284msgid ""
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."
282288msgstr ""
283289
284- #: ../../c-api/bytes.rst:164
290+ #: ../../c-api/bytes.rst:168
285291msgid ""
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`."
292298msgstr ""
293299
294- #: ../../c-api/bytes.rst:171
300+ #: ../../c-api/bytes.rst:175
295301msgid ""
296302"Previously, :exc:`TypeError` was raised when embedded null bytes were "
297303"encountered in the bytes object."
298304msgstr ""
299305
300- #: ../../c-api/bytes.rst:178
306+ #: ../../c-api/bytes.rst:182
301307msgid ""
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."
307313msgstr ""
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
310322msgid ""
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)."
314326msgstr ""
315327
316- #: ../../c-api/bytes.rst:194
328+ #: ../../c-api/bytes.rst:205
317329msgid "Similar to ``sep.join(iterable)`` in Python."
318330msgstr "類似 Python 中的 ``sep.join(iterable)``。"
319331
320- #: ../../c-api/bytes.rst:196
332+ #: ../../c-api/bytes.rst:207
321333msgid ""
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.)"
325337msgstr ""
326338
327- #: ../../c-api/bytes.rst:201
339+ #: ../../c-api/bytes.rst:212
328340msgid ""
329341"*iterable* must be an iterable object yielding objects that implement the :"
330342"ref:`buffer protocol <bufferobjects>`."
331343msgstr ""
332344
333- #: ../../c-api/bytes.rst:204
345+ #: ../../c-api/bytes.rst:215
334346msgid ""
335347"On success, return a new :class:`bytes` object. On error, set an exception "
336348"and return ``NULL``."
337349msgstr ""
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
340358msgid ""
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."
349367msgstr ""
350368
351- #: ../../c-api/bytes.rst:226
369+ #: ../../c-api/bytes.rst:240
352370msgid ""
353371"Get the string representation of *bytes*. This function is currently used to "
354372"implement :meth:`!bytes.__repr__` in Python."
355373msgstr ""
356374
357- #: ../../c-api/bytes.rst:229
375+ #: ../../c-api/bytes.rst:243
358376msgid ""
359377"This function does not do type checking; it is undefined behavior to pass "
360378"*bytes* as a non-bytes object or ``NULL``."
361379msgstr ""
362380
363- #: ../../c-api/bytes.rst:232
381+ #: ../../c-api/bytes.rst:246
364382msgid ""
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."
370388msgstr ""
371389
372- #: ../../c-api/bytes.rst:238
390+ #: ../../c-api/bytes.rst:252
373391msgid ""
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."
377395msgstr ""
378396
379- #: ../../c-api/bytes.rst:245
397+ #: ../../c-api/bytes.rst:259
380398msgid ""
381399"Unescape a backslash-escaped string *s*. *s* must not be ``NULL``. *len* "
382400"must be the size of *s*."
383401msgstr ""
384402
385- #: ../../c-api/bytes.rst:248
403+ #: ../../c-api/bytes.rst:262
386404msgid ""
387405"*errors* must be one of ``\" strict\" ``, ``\" replace\" ``, or ``\" ignore\" ``. "
388406"If *errors* is ``NULL``, then ``\" strict\" `` is used by default."
389407msgstr ""
390408
391- #: ../../c-api/bytes.rst:251
409+ #: ../../c-api/bytes.rst:265
392410msgid ""
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."
396414msgstr ""
397415
398- #: ../../c-api/bytes.rst:255
416+ #: ../../c-api/bytes.rst:269
399417msgid "*unicode* and *recode_encoding* are now unused."
400418msgstr ""
401419
0 commit comments