99msgstr ""
1010"Project-Id-Version : Python 3.13\n "
1111"Report-Msgid-Bugs-To : \n "
12- "POT-Creation-Date : 2025-02-18 00:13+0000\n "
12+ "POT-Creation-Date : 2025-02-21 00:13+0000\n "
1313"PO-Revision-Date : 2018-05-23 14:08+0000\n "
1414"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
1515"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -1710,27 +1710,74 @@ msgid ""
17101710"list."
17111711msgstr ""
17121712
1713- #: ../../c-api/unicode.rst:1404
1713+ #: ../../c-api/unicode.rst:1401 ../../c-api/unicode.rst:1411
1714+ #: ../../c-api/unicode.rst:1432 ../../c-api/unicode.rst:1445
1715+ #, fuzzy
1716+ msgid "On error, return ``NULL`` with an exception set."
1717+ msgstr "如果編解碼器引發例外則回傳 ``NULL``。"
1718+
1719+ #: ../../c-api/unicode.rst:1403
1720+ msgid "Equivalent to :py:meth:`str.split`."
1721+ msgstr ""
1722+
1723+ #: ../../c-api/unicode.rst:1408
1724+ msgid ""
1725+ "Similar to :c:func:`PyUnicode_Split`, but splitting will be done beginning "
1726+ "at the end of the string."
1727+ msgstr ""
1728+
1729+ #: ../../c-api/unicode.rst:1413
1730+ msgid "Equivalent to :py:meth:`str.rsplit`."
1731+ msgstr ""
1732+
1733+ #: ../../c-api/unicode.rst:1418
17141734msgid ""
17151735"Split a Unicode string at line breaks, returning a list of Unicode strings. "
17161736"CRLF is considered to be one line break. If *keepends* is ``0``, the Line "
17171737"break characters are not included in the resulting strings."
17181738msgstr ""
17191739
1720- #: ../../c-api/unicode.rst:1411
1740+ #: ../../c-api/unicode.rst:1425
1741+ msgid ""
1742+ "Split a Unicode string at the first occurrence of *sep*, and return a 3-"
1743+ "tuple containing the part before the separator, the separator itself, and "
1744+ "the part after the separator. If the separator is not found, return a 3-"
1745+ "tuple containing the string itself, followed by two empty strings."
1746+ msgstr ""
1747+
1748+ #: ../../c-api/unicode.rst:1430 ../../c-api/unicode.rst:1443
1749+ msgid "*sep* must not be empty."
1750+ msgstr ""
1751+
1752+ #: ../../c-api/unicode.rst:1434
1753+ msgid "Equivalent to :py:meth:`str.partition`."
1754+ msgstr ""
1755+
1756+ #: ../../c-api/unicode.rst:1439
1757+ msgid ""
1758+ "Similar to :c:func:`PyUnicode_Partition`, but split a Unicode string at the "
1759+ "last occurrence of *sep*. If the separator is not found, return a 3-tuple "
1760+ "containing two empty strings, followed by the string itself."
1761+ msgstr ""
1762+
1763+ #: ../../c-api/unicode.rst:1447
1764+ msgid "Equivalent to :py:meth:`str.rpartition`."
1765+ msgstr ""
1766+
1767+ #: ../../c-api/unicode.rst:1452
17211768msgid ""
17221769"Join a sequence of strings using the given *separator* and return the "
17231770"resulting Unicode string."
17241771msgstr ""
17251772
1726- #: ../../c-api/unicode.rst:1418
1773+ #: ../../c-api/unicode.rst:1459
17271774msgid ""
17281775"Return ``1`` if *substr* matches ``unicode[start:end]`` at the given tail "
17291776"end (*direction* == ``-1`` means to do a prefix match, *direction* == ``1`` "
17301777"a suffix match), ``0`` otherwise. Return ``-1`` if an error occurred."
17311778msgstr ""
17321779
1733- #: ../../c-api/unicode.rst:1426
1780+ #: ../../c-api/unicode.rst:1467
17341781msgid ""
17351782"Return the first position of *substr* in ``unicode[start:end]`` using the "
17361783"given *direction* (*direction* == ``1`` means to do a forward search, "
@@ -1739,7 +1786,7 @@ msgid ""
17391786"``-2`` indicates that an error occurred and an exception has been set."
17401787msgstr ""
17411788
1742- #: ../../c-api/unicode.rst:1436
1789+ #: ../../c-api/unicode.rst:1477
17431790msgid ""
17441791"Return the first position of the character *ch* in ``unicode[start:end]`` "
17451792"using the given *direction* (*direction* == ``1`` means to do a forward "
@@ -1749,37 +1796,37 @@ msgid ""
17491796"set."
17501797msgstr ""
17511798
1752- #: ../../c-api/unicode.rst:1444
1799+ #: ../../c-api/unicode.rst:1485
17531800msgid ""
17541801"*start* and *end* are now adjusted to behave like ``unicode[start:end]``."
17551802msgstr ""
17561803
1757- #: ../../c-api/unicode.rst:1451
1804+ #: ../../c-api/unicode.rst:1492
17581805msgid ""
17591806"Return the number of non-overlapping occurrences of *substr* in "
17601807"``unicode[start:end]``. Return ``-1`` if an error occurred."
17611808msgstr ""
17621809
1763- #: ../../c-api/unicode.rst:1458
1810+ #: ../../c-api/unicode.rst:1499
17641811msgid ""
17651812"Replace at most *maxcount* occurrences of *substr* in *unicode* with "
17661813"*replstr* and return the resulting Unicode object. *maxcount* == ``-1`` "
17671814"means replace all occurrences."
17681815msgstr ""
17691816
1770- #: ../../c-api/unicode.rst:1465
1817+ #: ../../c-api/unicode.rst:1506
17711818msgid ""
17721819"Compare two strings and return ``-1``, ``0``, ``1`` for less than, equal, "
17731820"and greater than, respectively."
17741821msgstr ""
17751822
1776- #: ../../c-api/unicode.rst:1468
1823+ #: ../../c-api/unicode.rst:1509
17771824msgid ""
17781825"This function returns ``-1`` upon failure, so one should call :c:func:"
17791826"`PyErr_Occurred` to check for errors."
17801827msgstr ""
17811828
1782- #: ../../c-api/unicode.rst:1474
1829+ #: ../../c-api/unicode.rst:1515
17831830msgid ""
17841831"Compare a Unicode object with a char buffer which is interpreted as being "
17851832"UTF-8 or ASCII encoded and return true (``1``) if they are equal, or false "
@@ -1788,66 +1835,66 @@ msgid ""
17881835"is returned."
17891836msgstr ""
17901837
1791- #: ../../c-api/unicode.rst:1481 ../../c-api/unicode.rst:1502
1838+ #: ../../c-api/unicode.rst:1522 ../../c-api/unicode.rst:1543
17921839msgid "This function does not raise exceptions."
17931840msgstr "此函式不會引發例外。"
17941841
1795- #: ../../c-api/unicode.rst:1488
1842+ #: ../../c-api/unicode.rst:1529
17961843msgid ""
17971844"Similar to :c:func:`PyUnicode_EqualToUTF8AndSize`, but compute *string* "
17981845"length using :c:func:`!strlen`. If the Unicode object contains null "
17991846"characters, false (``0``) is returned."
18001847msgstr ""
18011848
1802- #: ../../c-api/unicode.rst:1497
1849+ #: ../../c-api/unicode.rst:1538
18031850msgid ""
18041851"Compare a Unicode object, *unicode*, with *string* and return ``-1``, ``0``, "
18051852"``1`` for less than, equal, and greater than, respectively. It is best to "
18061853"pass only ASCII-encoded strings, but the function interprets the input "
18071854"string as ISO-8859-1 if it contains non-ASCII characters."
18081855msgstr ""
18091856
1810- #: ../../c-api/unicode.rst:1507
1857+ #: ../../c-api/unicode.rst:1548
18111858msgid "Rich compare two Unicode strings and return one of the following:"
18121859msgstr ""
18131860
1814- #: ../../c-api/unicode.rst:1509
1861+ #: ../../c-api/unicode.rst:1550
18151862msgid "``NULL`` in case an exception was raised"
18161863msgstr ""
18171864
1818- #: ../../c-api/unicode.rst:1510
1865+ #: ../../c-api/unicode.rst:1551
18191866msgid ":c:data:`Py_True` or :c:data:`Py_False` for successful comparisons"
18201867msgstr ""
18211868
1822- #: ../../c-api/unicode.rst:1511
1869+ #: ../../c-api/unicode.rst:1552
18231870msgid ":c:data:`Py_NotImplemented` in case the type combination is unknown"
18241871msgstr ""
18251872
1826- #: ../../c-api/unicode.rst:1513
1873+ #: ../../c-api/unicode.rst:1554
18271874msgid ""
18281875"Possible values for *op* are :c:macro:`Py_GT`, :c:macro:`Py_GE`, :c:macro:"
18291876"`Py_EQ`, :c:macro:`Py_NE`, :c:macro:`Py_LT`, and :c:macro:`Py_LE`."
18301877msgstr ""
18311878
1832- #: ../../c-api/unicode.rst:1519
1879+ #: ../../c-api/unicode.rst:1560
18331880msgid ""
18341881"Return a new string object from *format* and *args*; this is analogous to "
18351882"``format % args``."
18361883msgstr ""
18371884
1838- #: ../../c-api/unicode.rst:1525
1885+ #: ../../c-api/unicode.rst:1566
18391886msgid ""
18401887"Check whether *substr* is contained in *unicode* and return true or false "
18411888"accordingly."
18421889msgstr ""
18431890
1844- #: ../../c-api/unicode.rst:1528
1891+ #: ../../c-api/unicode.rst:1569
18451892msgid ""
18461893"*substr* has to coerce to a one element Unicode string. ``-1`` is returned "
18471894"if there was an error."
18481895msgstr ""
18491896
1850- #: ../../c-api/unicode.rst:1534
1897+ #: ../../c-api/unicode.rst:1575
18511898msgid ""
18521899"Intern the argument :c:expr:`*p_unicode` in place. The argument must be the "
18531900"address of a pointer variable pointing to a Python Unicode string object. "
@@ -1858,47 +1905,47 @@ msgid ""
18581905"interns it."
18591906msgstr ""
18601907
1861- #: ../../c-api/unicode.rst:1541
1908+ #: ../../c-api/unicode.rst:1582
18621909msgid ""
18631910"(Clarification: even though there is a lot of talk about references, think "
18641911"of this function as reference-neutral. You must own the object you pass in; "
18651912"after the call you no longer own the passed-in reference, but you newly own "
18661913"the result.)"
18671914msgstr ""
18681915
1869- #: ../../c-api/unicode.rst:1546
1916+ #: ../../c-api/unicode.rst:1587
18701917msgid ""
18711918"This function never raises an exception. On error, it leaves its argument "
18721919"unchanged without interning it."
18731920msgstr ""
18741921
1875- #: ../../c-api/unicode.rst:1549
1922+ #: ../../c-api/unicode.rst:1590
18761923msgid ""
18771924"Instances of subclasses of :py:class:`str` may not be interned, that is, :c:"
18781925"expr:`PyUnicode_CheckExact(*p_unicode)` must be true. If it is not, then -- "
18791926"as with any other error -- the argument is left unchanged."
18801927msgstr ""
18811928
1882- #: ../../c-api/unicode.rst:1553
1929+ #: ../../c-api/unicode.rst:1594
18831930msgid ""
18841931"Note that interned strings are not “immortal”. You must keep a reference to "
18851932"the result to benefit from interning."
18861933msgstr ""
18871934
1888- #: ../../c-api/unicode.rst:1559
1935+ #: ../../c-api/unicode.rst:1600
18891936msgid ""
18901937"A combination of :c:func:`PyUnicode_FromString` and :c:func:"
18911938"`PyUnicode_InternInPlace`, meant for statically allocated strings."
18921939msgstr ""
18931940
1894- #: ../../c-api/unicode.rst:1562
1941+ #: ../../c-api/unicode.rst:1603
18951942msgid ""
18961943"Return a new (\" owned\" ) reference to either a new Unicode string object "
18971944"that has been interned, or an earlier interned string object with the same "
18981945"value."
18991946msgstr ""
19001947
1901- #: ../../c-api/unicode.rst:1566
1948+ #: ../../c-api/unicode.rst:1607
19021949msgid ""
19031950"Python may keep a reference to the result, or make it :term:`immortal`, "
19041951"preventing it from being garbage-collected promptly. For interning an "
@@ -1907,6 +1954,6 @@ msgid ""
19071954"`PyUnicode_InternInPlace` directly."
19081955msgstr ""
19091956
1910- #: ../../c-api/unicode.rst:1574
1957+ #: ../../c-api/unicode.rst:1615
19111958msgid "Strings interned this way are made :term:`immortal`."
19121959msgstr ""
0 commit comments