Skip to content

Commit a5d411b

Browse files
sync with cpython 5a7c9d25
1 parent cfd0987 commit a5d411b

3 files changed

Lines changed: 158 additions & 135 deletions

File tree

library/asyncio-task.po

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.14\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2026-08-08 00:15+0000\n"
9+
"POT-Creation-Date: 2026-08-20 00:10+0000\n"
1010
"PO-Revision-Date: 2018-05-23 14:39+0000\n"
1111
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -537,7 +537,7 @@ msgstr ""
537537

538538
#: ../../library/asyncio-task.rst:369 ../../library/asyncio-task.rst:575
539539
#: ../../library/asyncio-task.rst:748 ../../library/asyncio-task.rst:809
540-
#: ../../library/asyncio-task.rst:835 ../../library/asyncio-task.rst:876
540+
#: ../../library/asyncio-task.rst:835 ../../library/asyncio-task.rst:872
541541
msgid "Example::"
542542
msgstr "範例: ::"
543543

@@ -758,7 +758,7 @@ msgstr ""
758758
"asyncio.run(display_date())"
759759

760760
#: ../../library/asyncio-task.rst:526 ../../library/asyncio-task.rst:624
761-
#: ../../library/asyncio-task.rst:723 ../../library/asyncio-task.rst:901
761+
#: ../../library/asyncio-task.rst:723 ../../library/asyncio-task.rst:897
762762
#: ../../library/asyncio-task.rst:959 ../../library/asyncio-task.rst:1020
763763
msgid "Removed the *loop* parameter."
764764
msgstr "移除 *loop* 參數。"
@@ -953,7 +953,7 @@ msgid ""
953953
"`cancelled <Task.cancel>`."
954954
msgstr ""
955955

956-
#: ../../library/asyncio-task.rst:686 ../../library/asyncio-task.rst:856
956+
#: ../../library/asyncio-task.rst:686
957957
msgid "If *aw* is a coroutine it is automatically scheduled as a Task."
958958
msgstr ""
959959

@@ -1186,35 +1186,32 @@ msgid ""
11861186
"timeout."
11871187
msgstr ""
11881188

1189-
#: ../../library/asyncio-task.rst:858
1189+
#: ../../library/asyncio-task.rst:856
11901190
msgid ""
11911191
"*timeout* can either be ``None`` or a float or int number of seconds to wait "
11921192
"for. If *timeout* is ``None``, block until the future completes."
11931193
msgstr ""
11941194

1195-
#: ../../library/asyncio-task.rst:862
1196-
msgid ""
1197-
"If a timeout occurs, it cancels the task and raises :exc:`TimeoutError`."
1195+
#: ../../library/asyncio-task.rst:860
1196+
msgid "If a timeout occurs, it cancels *aw* and raises :exc:`TimeoutError`."
11981197
msgstr ""
11991198

1200-
#: ../../library/asyncio-task.rst:865
1201-
msgid ""
1202-
"To avoid the task :meth:`cancellation <Task.cancel>`, wrap it in :func:"
1203-
"`shield`."
1199+
#: ../../library/asyncio-task.rst:862
1200+
msgid "To prevent *aw* from being cancelled, wrap it in :func:`shield`."
12041201
msgstr ""
12051202

1206-
#: ../../library/asyncio-task.rst:868
1203+
#: ../../library/asyncio-task.rst:864
12071204
msgid ""
12081205
"The function will wait until the future is actually cancelled, so the total "
12091206
"wait time may exceed the *timeout*. If an exception happens during "
12101207
"cancellation, it is propagated."
12111208
msgstr ""
12121209

1213-
#: ../../library/asyncio-task.rst:872
1210+
#: ../../library/asyncio-task.rst:868
12141211
msgid "If the wait is cancelled, the future *aw* is also cancelled."
12151212
msgstr ""
12161213

1217-
#: ../../library/asyncio-task.rst:878
1214+
#: ../../library/asyncio-task.rst:874
12181215
msgid ""
12191216
"async def eternity():\n"
12201217
" # Sleep for one hour\n"
@@ -1235,16 +1232,22 @@ msgid ""
12351232
"# timeout!"
12361233
msgstr ""
12371234

1238-
#: ../../library/asyncio-task.rst:896
1235+
#: ../../library/asyncio-task.rst:892
12391236
msgid ""
12401237
"When *aw* is cancelled due to a timeout, ``wait_for`` waits for *aw* to be "
12411238
"cancelled. Previously, it raised :exc:`TimeoutError` immediately."
12421239
msgstr ""
12431240

1244-
#: ../../library/asyncio-task.rst:904
1241+
#: ../../library/asyncio-task.rst:900
12451242
msgid "Raises :exc:`TimeoutError` instead of :exc:`asyncio.TimeoutError`."
12461243
msgstr "引發 :exc:`TimeoutError` 而不是 :exc:`asyncio.TimeoutError`。"
12471244

1245+
#: ../../library/asyncio-task.rst:903
1246+
msgid ""
1247+
"Implemented using :func:`asyncio.timeout`, a coroutine passed as *aw* is no "
1248+
"longer wrapped in a :class:`Task` when *timeout* is positive."
1249+
msgstr ""
1250+
12481251
#: ../../library/asyncio-task.rst:909
12491252
msgid "Waiting primitives"
12501253
msgstr ""

library/stdtypes.po

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: Python 3.14\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2026-08-14 00:20+0000\n"
12+
"POT-Creation-Date: 2026-08-20 00:10+0000\n"
1313
"PO-Revision-Date: 2022-06-12 15:22+0800\n"
1414
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -1240,8 +1240,9 @@ msgid "[sign] ['0x'] integer ['.' fraction] ['p' exponent]"
12401240
msgstr "[sign] ['0x'] integer ['.' fraction] ['p' exponent]"
12411241

12421242
#: ../../library/stdtypes.rst:709
1243+
#, fuzzy
12431244
msgid ""
1244-
"where the optional ``sign`` may by either ``+`` or ``-``, ``integer`` and "
1245+
"where the optional ``sign`` may be either ``+`` or ``-``, ``integer`` and "
12451246
"``fraction`` are strings of hexadecimal digits, and ``exponent`` is a "
12461247
"decimal integer with an optional leading sign. Case is not significant, and "
12471248
"there must be at least one hexadecimal digit in either the integer or the "
@@ -2197,8 +2198,8 @@ msgstr ""
21972198

21982199
#: ../../library/stdtypes.rst:1348
21992200
msgid ""
2200-
"Retrieve the item at *index* and also removes it from *sequence*. By "
2201-
"default, the last item in *sequence* is removed and returned."
2201+
"Retrieve the item at *index* and also remove it from *sequence*. By default, "
2202+
"the last item in *sequence* is removed and returned."
22022203
msgstr ""
22032204

22042205
#: ../../library/stdtypes.rst:1358
@@ -3500,8 +3501,8 @@ msgid ""
35003501
"those characters defined in the Unicode character database as \"Letter\", i."
35013502
"e., those with general category property being one of \"Lm\", \"Lt\", "
35023503
"\"Lu\", \"Ll\", or \"Lo\". Note that this is different from the `Alphabetic "
3503-
"property defined in the section 4.10 'Letters, Alphabetic, and Ideographic' "
3504-
"of the Unicode Standard <https://www.unicode.org/versions/Unicode16.0.0/core-"
3504+
"property defined in section 4.10 'Letters, Alphabetic, and Ideographic' of "
3505+
"the Unicode Standard <https://www.unicode.org/versions/Unicode16.0.0/core-"
35053506
"spec/chapter-4/#G91002>`_. For example:"
35063507
msgstr ""
35073508

@@ -4861,14 +4862,15 @@ msgid ""
48614862
msgstr ""
48624863

48634864
#: ../../library/stdtypes.rst:3029
4865+
#, fuzzy
48644866
msgid ""
48654867
">>> from fractions import Fraction\n"
48664868
">>> one_third = Fraction(1, 3)\n"
48674869
">>> f'{one_third:.6f}'\n"
48684870
"'0.333333'\n"
48694871
">>> f'{one_third:_^+10}'\n"
48704872
"'___+1/3___'\n"
4871-
">>> >>> f'{one_third!r:_^20}'\n"
4873+
">>> f'{one_third!r:_^20}'\n"
48724874
"'___Fraction(1, 3)___'\n"
48734875
">>> f'{one_third = :~>10}~'\n"
48744876
"'one_third = ~~~~~~~1/3~'"
@@ -4890,14 +4892,14 @@ msgstr "模板字串字面值 (t-strings)"
48904892

48914893
#: ../../library/stdtypes.rst:3045
48924894
msgid ""
4893-
"An :dfn:`t-string` (formally a :dfn:`template string literal`) is a string "
4895+
"A :dfn:`t-string` (formally a :dfn:`template string literal`) is a string "
48944896
"literal that is prefixed with ``t`` or ``T``."
48954897
msgstr ""
48964898

48974899
#: ../../library/stdtypes.rst:3048
48984900
msgid ""
48994901
"These strings follow the same syntax and evaluation rules as :ref:`formatted "
4900-
"string literals <stdtypes-fstrings>`, with for the following differences:"
4902+
"string literals <stdtypes-fstrings>`, with the following differences:"
49014903
msgstr ""
49024904

49034905
#: ../../library/stdtypes.rst:3052
@@ -4933,7 +4935,7 @@ msgid ""
49334935
"whitespace. The :class:`!Interpolation` instance for the expression will be "
49344936
"created as normal, except that :attr:`~string.templatelib.Interpolation."
49354937
"conversion` will be set to '``r``' (:func:`repr`) by default. If an explicit "
4936-
"conversion or format specifier are provided, this will override the default "
4938+
"conversion or format specifier is provided, this will override the default "
49374939
"behaviour."
49384940
msgstr ""
49394941

@@ -5531,8 +5533,8 @@ msgstr ""
55315533

55325534
#: ../../library/stdtypes.rst:3454
55335535
msgid ""
5534-
"This :class:`bytearray` class method returns bytearray object, decoding the "
5535-
"given string object. The string must contain two hexadecimal digits per "
5536+
"This :class:`bytearray` class method returns a bytearray object, decoding "
5537+
"the given string object. The string must contain two hexadecimal digits per "
55365538
"byte, with ASCII whitespace being ignored."
55375539
msgstr ""
55385540

@@ -6517,7 +6519,7 @@ msgid ""
65176519
"*interpolation* operator. Given ``format % values`` (where *format* is a "
65186520
"bytes object), ``%`` conversion specifications in *format* are replaced with "
65196521
"zero or more elements of *values*. The effect is similar to using the :c:"
6520-
"func:`sprintf` in the C language."
6522+
"func:`sprintf` function in the C language."
65216523
msgstr ""
65226524

65236525
#: ../../library/stdtypes.rst:4392
@@ -6622,8 +6624,8 @@ msgstr ""
66226624

66236625
#: ../../library/stdtypes.rst:4590
66246626
msgid ""
6625-
"``len(view)`` is equal to the length of :class:`~memoryview.tolist`, which "
6626-
"is the nested list representation of the view. If ``view.ndim = 1``, this is "
6627+
"``len(view)`` is equal to the length of :meth:`~memoryview.tolist`, which is "
6628+
"the nested list representation of the view. If ``view.ndim == 1``, this is "
66276629
"equal to the number of elements in the view."
66286630
msgstr ""
66296631

@@ -6788,7 +6790,7 @@ msgid ""
67886790
msgstr ""
67896791

67906792
#: ../../library/stdtypes.rst:4675
6791-
msgid "memoryviews can now be indexed with tuple of integers."
6793+
msgid "memoryviews can now be indexed with a tuple of integers."
67926794
msgstr ""
67936795

67946796
#: ../../library/stdtypes.rst:4678
@@ -9049,8 +9051,9 @@ msgstr ""
90499051
" return number ** 2"
90509052

90519053
#: ../../library/stdtypes.rst:6076
9054+
#, fuzzy
90529055
msgid ""
9053-
"The ``|`` operand cannot be used at runtime to define unions where one or "
9056+
"The ``|`` operator cannot be used at runtime to define unions where one or "
90549057
"more members is a forward reference. For example, ``int | \"Foo\"``, where "
90559058
"``\"Foo\"`` is a reference to a class not yet defined, will fail at runtime. "
90569059
"For unions which include forward references, present the whole expression as "
@@ -9294,7 +9297,7 @@ msgstr "方法"
92949297
msgid ""
92959298
"Methods are functions that are called using the attribute notation. There "
92969299
"are two flavors: :ref:`built-in methods <builtin-methods>` (such as :meth:"
9297-
"`~list.append` on lists) and :ref:`class instance method <instance-"
9300+
"`~list.append` on lists) and :ref:`class instance methods <instance-"
92989301
"methods>`. Built-in methods are described with the types that support them."
92999302
msgstr ""
93009303

0 commit comments

Comments
 (0)