Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb72c5f4

Browse files
sync with cpython 6cd2f356
1 parent150e0db commitb72c5f4

File tree

6 files changed

+560
-491
lines changed

6 files changed

+560
-491
lines changed

‎c-api/dict.po

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version:Python 3.13\n"
1111
"Report-Msgid-Bugs-To:\n"
12-
"POT-Creation-Date:2024-09-23 07:52+0800\n"
12+
"POT-Creation-Date:2025-02-21 00:13+0000\n"
1313
"PO-Revision-Date:2017-09-22 18:26+0000\n"
1414
"Last-Translator:Liang-Bo Wang <me@liang2.tw>\n"
1515
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -184,9 +184,8 @@ msgstr ""
184184

185185
#:../../c-api/dict.rst:159
186186
msgid""
187-
"Similar than :c:func:`PyDict_GetItemRef`, but *key* is specified as a :c:"
188-
"expr:`const char*` UTF-8 encoded bytes string, rather than a :c:expr:"
189-
"`PyObject*`."
187+
"Similar to :c:func:`PyDict_GetItemRef`, but *key* is specified as a :c:expr:"
188+
"`const char*` UTF-8 encoded bytes string, rather than a :c:expr:`PyObject*`."
190189
msgstr""
191190

192191
#:../../c-api/dict.rst:168
@@ -239,8 +238,8 @@ msgstr ""
239238

240239
#:../../c-api/dict.rst:209
241240
msgid""
242-
"This is similarto :meth:`dict.pop`, but without the default value and not "
243-
"raising :exc:`KeyError` if the key missing."
241+
"Similarto :meth:`dict.pop`, but without the default value and notraising :"
242+
"exc:`KeyError` if the key missing."
244243
msgstr""
245244

246245
#:../../c-api/dict.rst:217

‎c-api/unicode.po

Lines changed: 79 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
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."
17111711
msgstr""
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
17141734
msgid""
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."
17181738
msgstr""
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
17211768
msgid""
17221769
"Join a sequence of strings using the given *separator* and return the "
17231770
"resulting Unicode string."
17241771
msgstr""
17251772

1726-
#:../../c-api/unicode.rst:1418
1773+
#:../../c-api/unicode.rst:1459
17271774
msgid""
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."
17311778
msgstr""
17321779

1733-
#:../../c-api/unicode.rst:1426
1780+
#:../../c-api/unicode.rst:1467
17341781
msgid""
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."
17401787
msgstr""
17411788

1742-
#:../../c-api/unicode.rst:1436
1789+
#:../../c-api/unicode.rst:1477
17431790
msgid""
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."
17501797
msgstr""
17511798

1752-
#:../../c-api/unicode.rst:1444
1799+
#:../../c-api/unicode.rst:1485
17531800
msgid""
17541801
"*start* and *end* are now adjusted to behave like ``unicode[start:end]``."
17551802
msgstr""
17561803

1757-
#:../../c-api/unicode.rst:1451
1804+
#:../../c-api/unicode.rst:1492
17581805
msgid""
17591806
"Return the number of non-overlapping occurrences of *substr* in "
17601807
"``unicode[start:end]``. Return ``-1`` if an error occurred."
17611808
msgstr""
17621809

1763-
#:../../c-api/unicode.rst:1458
1810+
#:../../c-api/unicode.rst:1499
17641811
msgid""
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."
17681815
msgstr""
17691816

1770-
#:../../c-api/unicode.rst:1465
1817+
#:../../c-api/unicode.rst:1506
17711818
msgid""
17721819
"Compare two strings and return ``-1``, ``0``, ``1`` for less than, equal, "
17731820
"and greater than, respectively."
17741821
msgstr""
17751822

1776-
#:../../c-api/unicode.rst:1468
1823+
#:../../c-api/unicode.rst:1509
17771824
msgid""
17781825
"This function returns ``-1`` upon failure, so one should call :c:func:"
17791826
"`PyErr_Occurred` to check for errors."
17801827
msgstr""
17811828

1782-
#:../../c-api/unicode.rst:1474
1829+
#:../../c-api/unicode.rst:1515
17831830
msgid""
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."
17891836
msgstr""
17901837

1791-
#:../../c-api/unicode.rst:1481../../c-api/unicode.rst:1502
1838+
#:../../c-api/unicode.rst:1522../../c-api/unicode.rst:1543
17921839
msgid"This function does not raise exceptions."
17931840
msgstr"此函式不會引發例外。"
17941841

1795-
#:../../c-api/unicode.rst:1488
1842+
#:../../c-api/unicode.rst:1529
17961843
msgid""
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."
18001847
msgstr""
18011848

1802-
#:../../c-api/unicode.rst:1497
1849+
#:../../c-api/unicode.rst:1538
18031850
msgid""
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."
18081855
msgstr""
18091856

1810-
#:../../c-api/unicode.rst:1507
1857+
#:../../c-api/unicode.rst:1548
18111858
msgid"Rich compare two Unicode strings and return one of the following:"
18121859
msgstr""
18131860

1814-
#:../../c-api/unicode.rst:1509
1861+
#:../../c-api/unicode.rst:1550
18151862
msgid"``NULL`` in case an exception was raised"
18161863
msgstr""
18171864

1818-
#:../../c-api/unicode.rst:1510
1865+
#:../../c-api/unicode.rst:1551
18191866
msgid":c:data:`Py_True` or :c:data:`Py_False` for successful comparisons"
18201867
msgstr""
18211868

1822-
#:../../c-api/unicode.rst:1511
1869+
#:../../c-api/unicode.rst:1552
18231870
msgid":c:data:`Py_NotImplemented` in case the type combination is unknown"
18241871
msgstr""
18251872

1826-
#:../../c-api/unicode.rst:1513
1873+
#:../../c-api/unicode.rst:1554
18271874
msgid""
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`."
18301877
msgstr""
18311878

1832-
#:../../c-api/unicode.rst:1519
1879+
#:../../c-api/unicode.rst:1560
18331880
msgid""
18341881
"Return a new string object from *format* and *args*; this is analogous to "
18351882
"``format % args``."
18361883
msgstr""
18371884

1838-
#:../../c-api/unicode.rst:1525
1885+
#:../../c-api/unicode.rst:1566
18391886
msgid""
18401887
"Check whether *substr* is contained in *unicode* and return true or false "
18411888
"accordingly."
18421889
msgstr""
18431890

1844-
#:../../c-api/unicode.rst:1528
1891+
#:../../c-api/unicode.rst:1569
18451892
msgid""
18461893
"*substr* has to coerce to a one element Unicode string. ``-1`` is returned "
18471894
"if there was an error."
18481895
msgstr""
18491896

1850-
#:../../c-api/unicode.rst:1534
1897+
#:../../c-api/unicode.rst:1575
18511898
msgid""
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."
18591906
msgstr""
18601907

1861-
#:../../c-api/unicode.rst:1541
1908+
#:../../c-api/unicode.rst:1582
18621909
msgid""
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.)"
18671914
msgstr""
18681915

1869-
#:../../c-api/unicode.rst:1546
1916+
#:../../c-api/unicode.rst:1587
18701917
msgid""
18711918
"This function never raises an exception. On error, it leaves its argument "
18721919
"unchanged without interning it."
18731920
msgstr""
18741921

1875-
#:../../c-api/unicode.rst:1549
1922+
#:../../c-api/unicode.rst:1590
18761923
msgid""
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."
18801927
msgstr""
18811928

1882-
#:../../c-api/unicode.rst:1553
1929+
#:../../c-api/unicode.rst:1594
18831930
msgid""
18841931
"Note that interned strings are not “immortal”. You must keep a reference to "
18851932
"the result to benefit from interning."
18861933
msgstr""
18871934

1888-
#:../../c-api/unicode.rst:1559
1935+
#:../../c-api/unicode.rst:1600
18891936
msgid""
18901937
"A combination of :c:func:`PyUnicode_FromString` and :c:func:"
18911938
"`PyUnicode_InternInPlace`, meant for statically allocated strings."
18921939
msgstr""
18931940

1894-
#:../../c-api/unicode.rst:1562
1941+
#:../../c-api/unicode.rst:1603
18951942
msgid""
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."
18991946
msgstr""
19001947

1901-
#:../../c-api/unicode.rst:1566
1948+
#:../../c-api/unicode.rst:1607
19021949
msgid""
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."
19081955
msgstr""
19091956

1910-
#:../../c-api/unicode.rst:1574
1957+
#:../../c-api/unicode.rst:1615
19111958
msgid"Strings interned this way are made :term:`immortal`."
19121959
msgstr""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp