88msgstr ""
99"Project-Id-Version : Python 3.14\n "
1010"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2026-03-23 00:22 +0000\n "
11+ "POT-Creation-Date : 2026-04-10 00:23 +0000\n "
1212"PO-Revision-Date : 2018-05-23 14:08+0000\n "
1313"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
1414"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -2219,8 +2219,8 @@ msgstr ""
22192219#: ../../c-api/unicode.rst:1817 ../../c-api/unicode.rst:1827
22202220#: ../../c-api/unicode.rst:1842 ../../c-api/unicode.rst:1852
22212221#: ../../c-api/unicode.rst:1861 ../../c-api/unicode.rst:1868
2222- #: ../../c-api/unicode.rst:1877 ../../c-api/unicode.rst:1892
2223- #: ../../c-api/unicode.rst:1899 ../../c-api/unicode.rst:1918
2222+ #: ../../c-api/unicode.rst:1881 ../../c-api/unicode.rst:1896
2223+ #: ../../c-api/unicode.rst:1903 ../../c-api/unicode.rst:1922
22242224msgid ""
22252225"On success, return ``0``. On error, set an exception, leave the writer "
22262226"unchanged, and return ``-1``."
@@ -2233,7 +2233,7 @@ msgid ""
22332233msgstr ""
22342234
22352235#: ../../c-api/unicode.rst:1824 ../../c-api/unicode.rst:1836
2236- #: ../../c-api/unicode.rst:1907
2236+ #: ../../c-api/unicode.rst:1911
22372237msgid ""
22382238"*size* is the string length in bytes. If *size* is equal to ``-1``, call "
22392239"``strlen(str)`` to get the string length."
@@ -2276,101 +2276,108 @@ msgid ""
22762276"Call :c:func:`PyObject_Str` on *obj* and write the output into *writer*."
22772277msgstr "於 *obj* 上呼叫 :c:func:`PyObject_Str` 並將輸出寫入 *writer*。"
22782278
2279- #: ../../c-api/unicode.rst:1873
2279+ #: ../../c-api/unicode.rst:1871
2280+ msgid ""
2281+ "To write a :class:`str` subclass which overrides the :meth:`~object.__str__` "
2282+ "method, :c:func:`PyUnicode_FromObject` can be used to get the original "
2283+ "string."
2284+ msgstr ""
2285+
2286+ #: ../../c-api/unicode.rst:1877
22802287msgid ""
22812288"Call :c:func:`PyObject_Repr` on *obj* and write the output into *writer*."
22822289msgstr "於 *obj* 上呼叫 :c:func:`PyObject_Repr` 並將輸出寫入 *writer*。"
22832290
2284- #: ../../c-api/unicode.rst:1875
2291+ #: ../../c-api/unicode.rst:1879
22852292msgid "If *obj* is ``NULL``, write the string ``\" <NULL>\" `` into *writer*."
22862293msgstr ""
22872294
2288- #: ../../c-api/unicode.rst:1882
2295+ #: ../../c-api/unicode.rst:1886
22892296msgid "Added support for ``NULL``."
22902297msgstr ""
22912298
2292- #: ../../c-api/unicode.rst:1886
2299+ #: ../../c-api/unicode.rst:1890
22932300msgid "Write the substring ``str[start:end]`` into *writer*."
22942301msgstr ""
22952302
2296- #: ../../c-api/unicode.rst:1888
2303+ #: ../../c-api/unicode.rst:1892
22972304msgid ""
22982305"*str* must be Python :class:`str` object. *start* must be greater than or "
22992306"equal to 0, and less than or equal to *end*. *end* must be less than or "
23002307"equal to *str* length."
23012308msgstr ""
23022309
2303- #: ../../c-api/unicode.rst:1897
2310+ #: ../../c-api/unicode.rst:1901
23042311msgid ""
23052312"Similar to :c:func:`PyUnicode_FromFormat`, but write the output directly "
23062313"into *writer*."
23072314msgstr "類似於 :c:func:`PyUnicode_FromFormat`,但是直接將輸出寫入 *writer*。"
23082315
2309- #: ../../c-api/unicode.rst:1904
2316+ #: ../../c-api/unicode.rst:1908
23102317msgid ""
23112318"Decode the string *str* from UTF-8 with *errors* error handler and write the "
23122319"output into *writer*."
23132320msgstr ""
23142321
2315- #: ../../c-api/unicode.rst:1910
2322+ #: ../../c-api/unicode.rst:1914
23162323msgid ""
23172324"*errors* is an :ref:`error handler <error-handlers>` name, such as "
23182325"``\" replace\" ``. If *errors* is ``NULL``, use the strict error handler."
23192326msgstr ""
23202327
2321- #: ../../c-api/unicode.rst:1913
2328+ #: ../../c-api/unicode.rst:1917
23222329msgid ""
23232330"If *consumed* is not ``NULL``, set *\\ *consumed* to the number of decoded "
23242331"bytes on success. If *consumed* is ``NULL``, treat trailing incomplete UTF-8 "
23252332"byte sequences as an error."
23262333msgstr ""
23272334
2328- #: ../../c-api/unicode.rst:1921
2335+ #: ../../c-api/unicode.rst:1925
23292336msgid "See also :c:func:`PyUnicodeWriter_WriteUTF8`."
23302337msgstr "另請參閱 :c:func:`PyUnicodeWriter_WriteUTF8`。"
23312338
2332- #: ../../c-api/unicode.rst:1924
2339+ #: ../../c-api/unicode.rst:1928
23332340msgid "Deprecated API"
23342341msgstr "已棄用的 API"
23352342
2336- #: ../../c-api/unicode.rst:1926
2343+ #: ../../c-api/unicode.rst:1930
23372344msgid "The following API is deprecated."
23382345msgstr "以下 API 已棄用。"
23392346
2340- #: ../../c-api/unicode.rst:1930
2347+ #: ../../c-api/unicode.rst:1934
23412348msgid ""
23422349"This is a typedef of :c:type:`wchar_t`, which is a 16-bit type or 32-bit "
23432350"type depending on the platform. Please use :c:type:`wchar_t` directly "
23442351"instead."
23452352msgstr ""
23462353
2347- #: ../../c-api/unicode.rst:1934
2354+ #: ../../c-api/unicode.rst:1938
23482355msgid ""
23492356"In previous versions, this was a 16-bit type or a 32-bit type depending on "
23502357"whether you selected a \" narrow\" or \" wide\" Unicode version of Python at "
23512358"build time."
23522359msgstr ""
23532360
2354- #: ../../c-api/unicode.rst:1944
2361+ #: ../../c-api/unicode.rst:1948
23552362msgid ""
23562363"Do nothing and return ``0``. This API is kept only for backward "
23572364"compatibility, but there are no plans to remove it."
23582365msgstr ""
23592366
2360- #: ../../c-api/unicode.rst:1950
2367+ #: ../../c-api/unicode.rst:1954
23612368msgid ""
23622369"This API does nothing since Python 3.12. Previously, this needed to be "
23632370"called for each string created using the old API (:c:func:`!"
23642371"PyUnicode_FromUnicode` or similar)."
23652372msgstr ""
23662373
2367- #: ../../c-api/unicode.rst:1958
2374+ #: ../../c-api/unicode.rst:1962
23682375msgid ""
23692376"Do nothing and return ``1``. This API is kept only for backward "
23702377"compatibility, but there are no plans to remove it."
23712378msgstr ""
23722379
2373- #: ../../c-api/unicode.rst:1964
2380+ #: ../../c-api/unicode.rst:1968
23742381msgid ""
23752382"This API does nothing since Python 3.12. Previously, this could be called to "
23762383"check if :c:func:`PyUnicode_READY` is necessary."
0 commit comments