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

Commit917b667

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython 5907cd68
1 parentbb52eab commit917b667

25 files changed

+499
-448
lines changed

‎faq/general.po

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
1111
"Project-Id-Version:Python 3.13\n"
1212
"Report-Msgid-Bugs-To:\n"
13-
"POT-Creation-Date:2024-09-24 07:20+0000\n"
13+
"POT-Creation-Date:2025-02-19 00:13+0000\n"
1414
"PO-Revision-Date:2023-06-23 16:56+0800\n"
1515
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
1616
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -808,9 +808,10 @@ msgstr ""
808808
"(串列)的 method(方法),他們可以像這樣做: ::"
809809

810810
#:../../faq/general.rst:412
811+
#,fuzzy
811812
msgid""
812813
">>> L = []\n"
813-
">>> dir(L)\n"
814+
">>> dir(L)\n"
814815
"['__add__', '__class__', '__contains__', '__delattr__', '__delitem__',\n"
815816
"'__dir__', '__doc__', '__eq__', '__format__', '__ge__',\n"
816817
"'__getattribute__', '__getitem__', '__gt__', '__hash__', '__iadd__',\n"

‎faq/programming.po

Lines changed: 123 additions & 127 deletions
Large diffs are not rendered by default.

‎howto/enum.po

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version:Python 3.13\n"
88
"Report-Msgid-Bugs-To:\n"
9-
"POT-Creation-Date:2024-11-27 00:14+0000\n"
9+
"POT-Creation-Date:2025-02-19 00:13+0000\n"
1010
"PO-Revision-Date:YEAR-MO-DA HO:MI+ZONE\n"
1111
"Last-Translator:FULL NAME <EMAIL@ADDRESS>\n"
1212
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -211,7 +211,7 @@ msgstr ""
211211
#:../../howto/enum.rst:108
212212
msgid""
213213
">>> from datetime import date\n"
214-
">>> Weekday.from_date(date.today())\n"
214+
">>> Weekday.from_date(date.today())\n"
215215
"<Weekday.TUESDAY: 2>"
216216
msgstr""
217217

@@ -1999,11 +1999,12 @@ msgid ""
19991999
msgstr""
20002000

20012001
#:../../howto/enum.rst:1093
2002+
#,fuzzy
20022003
msgid""
2003-
">>> dir(Planet)\n"
2004+
">>> dir(Planet)\n"
20042005
"['EARTH', 'JUPITER', 'MARS', 'MERCURY', 'NEPTUNE', 'SATURN', 'URANUS', "
20052006
"'VENUS', '__class__', '__doc__', '__members__', '__module__']\n"
2006-
">>> dir(Planet.EARTH)\n"
2007+
">>> dir(Planet.EARTH)\n"
20072008
"['__class__', '__doc__', '__module__', 'mass', 'name', 'radius', "
20082009
"'surface_gravity', 'value']"
20092010
msgstr""
@@ -2413,13 +2414,14 @@ msgid "Using :class:`object` would look like::"
24132414
msgstr""
24142415

24152416
#:../../howto/enum.rst:1315
2417+
#,fuzzy
24162418
msgid""
24172419
">>> class Color(Enum):\n"
24182420
"... RED = object()\n"
24192421
"... GREEN = object()\n"
24202422
"... BLUE = object()\n"
24212423
"...\n"
2422-
">>> Color.GREEN\n"
2424+
">>> Color.GREEN\n"
24232425
"<Color.GREEN: <object object at 0x...>>"
24242426
msgstr""
24252427
">>> class Color(Enum):\n"

‎howto/functional.po

Lines changed: 51 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.13\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2024-09-23 07:52+0800\n"
10+
"POT-Creation-Date:2025-02-19 00:13+0000\n"
1111
"PO-Revision-Date:2018-05-23 14:36+0000\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -42,8 +42,8 @@ msgstr "0.32"
4242
msgid""
4343
"In this document, we'll take a tour of Python's features suitable for "
4444
"implementing programs in a functional style. After an introduction to the "
45-
"concepts of functional programming, we'll look at language features such "
46-
"as :term:`iterator`\\s and :term:`generator`\\s and relevant library modules "
45+
"concepts of functional programming, we'll look at language features suchas :"
46+
"term:`iterator`\\s and :term:`generator`\\s and relevant library modules "
4747
"such as :mod:`itertools` and :mod:`functools`."
4848
msgstr""
4949

@@ -364,10 +364,9 @@ msgid ""
364364
"iterator argument and will return the largest or smallest element. The "
365365
"``\"in\"`` and ``\"not in\"`` operators also support iterators: ``X in "
366366
"iterator`` is true if X is found in the stream returned by the iterator. "
367-
"You'll run into obvious problems if the iterator is "
368-
"infinite; :func:`max`, :func:`min` will never return, and if the element X "
369-
"never appears in the stream, the ``\"in\"`` and ``\"not in\"`` operators "
370-
"won't return either."
367+
"You'll run into obvious problems if the iterator is infinite; :func:`max`, :"
368+
"func:`min` will never return, and if the element X never appears in the "
369+
"stream, the ``\"in\"`` and ``\"not in\"`` operators won't return either."
371370
msgstr""
372371

373372
#:../../howto/functional.rst:256
@@ -445,9 +444,8 @@ msgstr ""
445444
msgid""
446445
"Applying :func:`iter` to a dictionary always loops over the keys, but "
447446
"dictionaries have methods that return other iterators. If you want to "
448-
"iterate over values or key/value pairs, you can explicitly call "
449-
"the :meth:`~dict.values` or :meth:`~dict.items` methods to get an "
450-
"appropriate iterator."
447+
"iterate over values or key/value pairs, you can explicitly call the :meth:"
448+
"`~dict.values` or :meth:`~dict.items` methods to get an appropriate iterator."
451449
msgstr""
452450

453451
#:../../howto/functional.rst:302
@@ -797,9 +795,9 @@ msgstr ""
797795

798796
#:../../howto/functional.rst:539
799797
msgid""
800-
"In Python 2.5 there's a simple way to pass values into a "
801-
"generator. :keyword:`yield` became an expression, returning a value that can "
802-
"be assigned to avariable or otherwise operated on::"
798+
"In Python 2.5 there's a simple way to pass values into agenerator. :keyword:"
799+
"`yield` became an expression, returning a value that can be assigned to a "
800+
"variable or otherwise operated on::"
803801
msgstr""
804802

805803
#:../../howto/functional.rst:543
@@ -827,9 +825,8 @@ msgstr ""
827825
msgid""
828826
"Values are sent into a generator by calling its :meth:`send(value) "
829827
"<generator.send>` method. This method resumes the generator's code and the "
830-
"``yield`` expression returns the specified value. If the "
831-
"regular :meth:`~generator.__next__` method is called, the ``yield`` returns "
832-
"``None``."
828+
"``yield`` expression returns the specified value. If the regular :meth:"
829+
"`~generator.__next__` method is called, the ``yield`` returns ``None``."
833830
msgstr""
834831

835832
#:../../howto/functional.rst:561
@@ -889,18 +886,18 @@ msgstr ""
889886
msgid""
890887
":meth:`~generator.close` raises a :exc:`GeneratorExit` exception inside the "
891888
"generator to terminate the iteration. On receiving this exception, the "
892-
"generator's code must either raise :exc:`GeneratorExit` "
893-
"or :exc:`StopIteration`; catching the exception and doing anything else is "
894-
"illegaland will trigger a :exc:`RuntimeError`. :meth:`~generator.close` "
895-
"will alsobe called by Python's garbage collector when the generator is "
896-
"garbage-collected."
889+
"generator's code must either raise :exc:`GeneratorExit`or :exc:"
890+
"`StopIteration`; catching the exception and doing anything else is illegal "
891+
"and will trigger a :exc:`RuntimeError`. :meth:`~generator.close` will also "
892+
"be called by Python's garbage collector when the generator isgarbage-"
893+
"collected."
897894
msgstr""
898895

899896
#:../../howto/functional.rst:613
900897
msgid""
901898
"If you need to run cleanup code when a :exc:`GeneratorExit` occurs, I "
902-
"suggest using a ``try: ... finally:`` suite instead of "
903-
"catching :exc:`GeneratorExit`."
899+
"suggest using a ``try: ... finally:`` suite instead ofcatching :exc:"
900+
"`GeneratorExit`."
904901
msgstr""
905902

906903
#:../../howto/functional.rst:616
@@ -942,8 +939,8 @@ msgstr ":func:`map(f, iterA, iterB, ...) <map>` 回傳一個元素為序列的
942939
msgid""
943940
"``f(iterA[0], iterB[0]), f(iterA[1], iterB[1]), f(iterA[2], iterB[2]), ...``."
944941
msgstr""
945-
"``f(iterA[0], iterB[0]), f(iterA[1], iterB[1]), f(iterA[2], "
946-
"iterB[2]), ...``。"
942+
"``f(iterA[0], iterB[0]), f(iterA[1], iterB[1]), f(iterA[2],iterB[2]), ..."
943+
"``。"
947944

948945
#:../../howto/functional.rst:644
949946
msgid"You can of course achieve the same effect with a list comprehension."
@@ -1014,11 +1011,11 @@ msgid ""
10141011
">>> import random\n"
10151012
">>> # Generate 8 random numbers between [0, 10000)\n"
10161013
">>> rand_list = random.sample(range(10000), 8)\n"
1017-
">>> rand_list\n"
1014+
">>> rand_list\n"
10181015
"[769, 7953, 9828, 6431, 8442, 9878, 6213, 2207]\n"
1019-
">>> sorted(rand_list)\n"
1016+
">>> sorted(rand_list)\n"
10201017
"[769, 2207, 6213, 6431, 7953, 8442, 9828, 9878]\n"
1021-
">>> sorted(rand_list, reverse=True)\n"
1018+
">>> sorted(rand_list, reverse=True)\n"
10221019
"[9878, 9828, 8442, 7953, 6431, 6213, 2207, 769]"
10231020
msgstr""
10241021

@@ -1253,11 +1250,10 @@ msgstr ""
12531250
#:../../howto/functional.rst:829
12541251
msgid""
12551252
"The :mod:`operator` module contains a set of functions corresponding to "
1256-
"Python's operators. Some examples are :func:`operator.add(a, b) "
1257-
"<operator.add>` (adds two values), :func:`operator.ne(a, b) <operator.ne>` "
1258-
"(same as ``a != b``), and :func:`operator.attrgetter('id') "
1259-
"<operator.attrgetter>` (returns a callable that fetches the ``.id`` "
1260-
"attribute)."
1253+
"Python's operators. Some examples are :func:`operator.add(a, b) <operator."
1254+
"add>` (adds two values), :func:`operator.ne(a, b) <operator.ne>` (same as "
1255+
"``a != b``), and :func:`operator.attrgetter('id') <operator.attrgetter>` "
1256+
"(returns a callable that fetches the ``.id`` attribute)."
12611257
msgstr""
12621258

12631259
#:../../howto/functional.rst:835
@@ -1409,10 +1405,9 @@ msgstr ""
14091405
msgid""
14101406
"The elements within each tuple remain in the same order as *iterable* "
14111407
"returned them. For example, the number 1 is always before 2, 3, 4, or 5 in "
1412-
"the examples above. A similar "
1413-
"function, :func:`itertools.permutations(iterable, r=None) "
1414-
"<itertools.permutations>`, removes this constraint on the order, returning "
1415-
"all possible arrangements of length *r*::"
1408+
"the examples above. A similar function, :func:`itertools."
1409+
"permutations(iterable, r=None) <itertools.permutations>`, removes this "
1410+
"constraint on the order, returning all possible arrangements of length *r*::"
14161411
msgstr""
14171412

14181413
#:../../howto/functional.rst:915
@@ -1471,11 +1466,11 @@ msgstr ""
14711466

14721467
#:../../howto/functional.rst:940
14731468
msgid""
1474-
"The :func:`itertools.combinations_with_replacement(iterable, r) "
1475-
"<itertools.combinations_with_replacement>` function relaxes a different "
1476-
"constraint:elements can be repeated within a single tuple. Conceptually an "
1477-
"element isselected for the first position of each tuple and then is "
1478-
"replaced beforethe second element is selected. ::"
1469+
"The :func:`itertools.combinations_with_replacement(iterable, r)<itertools."
1470+
"combinations_with_replacement>` function relaxes a different constraint: "
1471+
"elements can be repeated within a single tuple. Conceptually an element is "
1472+
"selected for the first position of each tuple and then is replaced before "
1473+
"the second element is selected. ::"
14791474
msgstr""
14801475

14811476
#:../../howto/functional.rst:946
@@ -1576,8 +1571,8 @@ msgstr "functools 模組"
15761571
msgid""
15771572
"The :mod:`functools` module contains some higher-order functions. A **higher-"
15781573
"order function** takes one or more functions as input and returns a new "
1579-
"function. The most useful tool in this module is "
1580-
"the :func:`functools.partial` function."
1574+
"function. The most useful tool in this module isthe :func:`functools."
1575+
"partial` function."
15811576
msgstr""
15821577

15831578
#:../../howto/functional.rst:1004
@@ -1620,14 +1615,14 @@ msgid ""
16201615
":func:`functools.reduce(func, iter, [initial_value]) <functools.reduce>` "
16211616
"cumulatively performs an operation on all the iterable's elements and, "
16221617
"therefore, can't be applied to infinite iterables. *func* must be a function "
1623-
"that takes two elements and returns a single "
1624-
"value. :func:`functools.reduce` takes the first two elements A and B "
1625-
"returned by the iterator andcalculates ``func(A, B)``. It then requests "
1626-
"the third element, C,calculates ``func(func(A, B), C)``, combines this "
1627-
"result with the fourthelement returned, and continues until the iterable is "
1628-
"exhausted. If theiterable returns no values at all, a :exc:`TypeError` "
1629-
"exception is raised.If the initial value is supplied, it's used as a "
1630-
"starting point and``func(initial_value, A)`` is the first calculation. ::"
1618+
"that takes two elements and returns a singlevalue. :func:`functools."
1619+
"reduce` takes the first two elements A and B returned by the iterator and "
1620+
"calculates ``func(A, B)``. It then requests the third element, C, "
1621+
"calculates ``func(func(A, B), C)``, combines this result with the fourth "
1622+
"element returned, and continues until the iterable is exhausted. If the "
1623+
"iterable returns no values at all, a :exc:`TypeError` exception is raised. "
1624+
"If the initial value is supplied, it's used as a starting point and "
1625+
"``func(initial_value, A)`` is the first calculation. ::"
16311626
msgstr""
16321627

16331628
#:../../howto/functional.rst:1039
@@ -1683,11 +1678,10 @@ msgstr ""
16831678

16841679
#:../../howto/functional.rst:1075
16851680
msgid""
1686-
"A related function is :func:`itertools.accumulate(iterable, "
1687-
"func=operator.add) <itertools.accumulate>`. It performs the same "
1688-
"calculation, but instead of returning only the final "
1689-
"result, :func:`~itertools.accumulate` returns an iterator that also yields "
1690-
"each partial result::"
1681+
"A related function is :func:`itertools.accumulate(iterable, func=operator."
1682+
"add) <itertools.accumulate>`. It performs the same calculation, but instead "
1683+
"of returning only the final result, :func:`~itertools.accumulate` returns an "
1684+
"iterator that also yields each partial result::"
16911685
msgstr""
16921686

16931687
#:../../howto/functional.rst:1080

‎howto/ipaddress.po

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version:Python 3.13\n"
1010
"Report-Msgid-Bugs-To:\n"
11-
"POT-Creation-Date:2024-09-03 11:11+0800\n"
11+
"POT-Creation-Date:2025-02-19 00:13+0000\n"
1212
"PO-Revision-Date:2024-07-20 16:09+0800\n"
1313
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -332,10 +332,11 @@ msgid "Iterating through the \"usable\" addresses on a network::"
332332
msgstr""
333333

334334
#:../../howto/ipaddress.rst:192
335+
#,fuzzy
335336
msgid""
336337
">>> net4 = ipaddress.ip_network('192.0.2.0/24')\n"
337338
">>> for x in net4.hosts():\n"
338-
"... print(x)\n"
339+
"... print(x)\n"
339340
"192.0.2.1\n"
340341
"192.0.2.2\n"
341342
"192.0.2.3\n"

‎howto/regex.po

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version:Python 3.13\n"
1010
"Report-Msgid-Bugs-To:\n"
11-
"POT-Creation-Date:2024-09-03 11:11+0800\n"
11+
"POT-Creation-Date:2025-02-19 00:13+0000\n"
1212
"PO-Revision-Date:2018-05-23 14:37+0000\n"
1313
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -918,9 +918,10 @@ msgid ""
918918
msgstr""
919919

920920
#:../../howto/regex.rst:483
921+
#,fuzzy
921922
msgid""
922923
">>> iterator = p.finditer('12 drummers drumming, 11 ... 10 ...')\n"
923-
">>> iterator\n"
924+
">>> iterator\n"
924925
"<callable_iterator object at 0x...>\n"
925926
">>> for match in iterator:\n"
926927
"... print(match.span())\n"
@@ -954,10 +955,11 @@ msgid ""
954955
msgstr""
955956

956957
#:../../howto/regex.rst:504
958+
#,fuzzy
957959
msgid""
958960
">>> print(re.match(r'From\\s+', 'Fromage amk'))\n"
959961
"None\n"
960-
">>> re.match(r'From\\s+', 'From amk Thu May 14 19:12:10 1998')\n"
962+
">>> re.match(r'From\\s+', 'From amk Thu May 14 19:12:10 1998')\n"
961963
"<re.Match object; span=(0, 5), match='From '>"
962964
msgstr""
963965
">>> print(re.match(r'From\\s+', 'Fromage amk'))\n"
@@ -1069,13 +1071,13 @@ msgid ""
10691071
"letters, too. Full Unicode matching also works unless the :const:`ASCII` "
10701072
"flag is used to disable non-ASCII matches. When the Unicode patterns ``[a-"
10711073
"z]`` or ``[A-Z]`` are used in combination with the :const:`IGNORECASE` flag, "
1072-
"they will match the 52 ASCII letters and 4 additional non-ASCII letters:'İ'"
1073-
"(U+0130, Latin capital letter I with dot above), 'ı' (U+0131, Latin small "
1074-
"letter dotless i), 'ſ' (U+017F, Latin small letter long s) and 'K' (U+212A, "
1075-
"Kelvin sign). ``Spam`` will match ``'Spam'``, ``'spam'``, ``'spAM'``, or "
1076-
"``'ſpam'`` (the latter is matched only in Unicode mode). This lowercasing "
1077-
"doesn't take the current locale into account; it will if youalso set the :"
1078-
"const:`LOCALE` flag."
1074+
"they will match the 52 ASCII letters and 4 additional non-ASCII letters: "
1075+
"'İ'(U+0130, Latin capital letter I with dot above), 'ı' (U+0131, Latin "
1076+
"smallletter dotless i), 'ſ' (U+017F, Latin small letter long s) and "
1077+
"'K' (U+212A,Kelvin sign). ``Spam`` will match ``'Spam'``, ``'spam'``, "
1078+
"``'spAM'``, or ``'ſpam'`` (the latter is matched only in Unicode mode). This "
1079+
"lowercasingdoesn't take the current locale into account; it will if you "
1080+
"also set the :const:`LOCALE` flag."
10791081
msgstr""
10801082

10811083
#:../../howto/regex.rst:581
@@ -1257,8 +1259,9 @@ msgid ""
12571259
msgstr""
12581260

12591261
#:../../howto/regex.rst:714
1262+
#,fuzzy
12601263
msgid""
1261-
">>> print(re.search('^From', 'From Here to Eternity'))\n"
1264+
">>> print(re.search('^From', 'From Here to Eternity'))\n"
12621265
"<re.Match object; span=(0, 4), match='From'>\n"
12631266
">>> print(re.search('^From', 'Reciting From Memory'))\n"
12641267
"None"
@@ -1283,12 +1286,13 @@ msgid ""
12831286
msgstr""
12841287

12851288
#:../../howto/regex.rst:725
1289+
#,fuzzy
12861290
msgid""
1287-
">>> print(re.search('}$', '{block}'))\n"
1291+
">>> print(re.search('}$', '{block}'))\n"
12881292
"<re.Match object; span=(6, 7), match='}'>\n"
12891293
">>> print(re.search('}$', '{block} '))\n"
12901294
"None\n"
1291-
">>> print(re.search('}$', '{block}\\n'))\n"
1295+
">>> print(re.search('}$', '{block}\\n'))\n"
12921296
"<re.Match object; span=(6, 7), match='}'>"
12931297
msgstr""
12941298
">>> print(re.search('}$', '{block}')) \n"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp