8000 sync with cpython 9ed179b0 · python/python-docs-zh-tw@04ba747 · GitHub
[go: up one dir, main page]

Skip to content

Commit 04ba747

Browse files
sync with cpython 9ed179b0
1 parent 78164eb commit 04ba747

File tree

3 files changed

+290
-274
lines changed

3 files changed

+290
-274
lines changed

howto/functional.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.10\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-10-07 00:10+0000\n"
11+
"POT-Creation-Date: 2022-04-01 00:15+0000\n"
1212
"PO-Revision-Date: 2018-05-23 14:36+0000\n"
1313
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -678,9 +678,9 @@ msgstr ""
678678

679679
#: ../../howto/functional.rst:592
680680
msgid ""
681-
":meth:`throw(type, value=None, traceback=None) <generator.throw>` is used to "
682-
"raise an exception inside the generator; the exception is raised by the "
683-
"``yield`` expression where the generator's execution is paused."
681+
":meth:`throw(value) <generator.throw>` is used to raise an exception inside "
682+
"the generator; the exception is raised by the ``yield`` expression where the "
683+
"generator's execution is paused."
684684
msgstr ""
685685

686686
#: ../../howto/functional.rst:596

reference/datamodel.po

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.10\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-03-21 00:13+0000\n"
10+
"POT-Creation-Date: 2022-04-01 00:15+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:17+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -3312,7 +3312,7 @@ msgid ""
33123312
"value, described above."
33133313
msgstr ""
33143314

3315-
#: ../../reference/datamodel.rst:2918
3315+
#: ../../reference/datamodel.rst:2919
33163316
msgid ""
33173317
"Raises the specified exception in the coroutine. This method delegates to "
33183318
"the :meth:`~generator.throw` method of the iterator that caused the "
@@ -3323,7 +3323,7 @@ msgid ""
33233323
"not caught in the coroutine, it propagates back to the caller."
33243324
msgstr ""
33253325

3326-
#: ../../reference/datamodel.rst:2929
3326+
#: ../../reference/datamodel.rst:2930
33273327
msgid ""
33283328
"Causes the coroutine to clean itself up and exit. If the coroutine is "
33293329
"suspended, this method first delegates to the :meth:`~generator.close` "
@@ -3333,115 +3333,115 @@ msgid ""
33333333
"is marked as having finished executing, even if it was never started."
33343334
msgstr ""
33353335

3336-
#: ../../reference/datamodel.rst:2937
3336+
#: ../../reference/datamodel.rst:2938
33373337
msgid ""
33383338
"Coroutine objects are automatically closed using the above process when they "
33393339
"are about to be destroyed."
33403340
msgstr ""
33413341

3342-
#: ../../reference/datamodel.rst:2943
3342+
#: ../../reference/datamodel.rst:2944
33433343
msgid "Asynchronous Iterators"
33443344
msgstr ""
33453345

3346-
#: ../../reference/datamodel.rst:2945
3346+
#: ../../reference/datamodel.rst:2946
33473347
msgid ""
33483348
"An *asynchronous iterator* can call asynchronous code in its ``__anext__`` "
33493349
"method."
33503350
msgstr ""
33513351

3352-
#: ../../reference/datamodel.rst:2948
3352+
#: ../../reference/datamodel.rst:2949
33533353
msgid ""
33543354
"Asynchronous iterators can be used in an :keyword:`async for` statement."
33553355
msgstr ""
33563356

3357-
#: ../../reference/datamodel.rst:2952
3357+
#: ../../reference/datamodel.rst:2953
33583358
msgid "Must return an *asynchronous iterator* object."
33593359
msgstr ""
33603360

3361-
#: ../../reference/datamodel.rst:2956
3361+
#: ../../reference/datamodel.rst:2957
33623362
msgid ""
33633363
"Must return an *awaitable* resulting in a next value of the iterator. "
33643364
"Should raise a :exc:`StopAsyncIteration` error when the iteration is over."
33653365
msgstr ""
33663366

3367-
#: ../../reference/datamodel.rst:2959
3367+
#: ../../reference/datamodel.rst:2960
33683368
msgid "An example of an asynchronous iterable object::"
33693369
msgstr ""
33703370

3371-
#: ../../reference/datamodel.rst:2976
3371+
#: ../../reference/datamodel.rst:2977
33723372
msgid ""
33733373
"Prior to Python 3.7, :meth:`~object.__aiter__` could return an *awaitable* "
33743374
"that would resolve to an :term:`asynchronous iterator <asynchronous "
33753375
"iterator>`."
33763376
msgstr ""
33773377

3378-
#: ../../reference/datamodel.rst:2981
3378+
#: ../../reference/datamodel.rst:2982
33793379
msgid ""
33803380
"Starting with Python 3.7, :meth:`~object.__aiter__` must return an "
33813381
"asynchronous iterator object. Returning anything else will result in a :exc:"
33823382
"`TypeError` error."
33833383
msgstr ""
33843384

3385-
#: ../../reference/datamodel.rst:2989
3385+
#: ../../reference/datamodel.rst:2990
33863386
msgid "Asynchronous Context Managers"
33873387
msgstr ""
33883388

3389-
#: ../../reference/datamodel.rst:2991
3389+
#: ../../reference/datamodel.rst:2992
33903390
msgid ""
33913391
"An *asynchronous context manager* is a *context manager* that is able to "
33923392
"suspend execution in its ``__aenter__`` and ``__aexit__`` methods."
33933393
msgstr ""
33943394

3395-
#: ../../reference/datamodel.rst:2994
3395+
#: ../../reference/datamodel.rst:2995
33963396
msgid ""
33973397
"Asynchronous context managers can be used in an :keyword:`async with` "
33983398
"statement."
33993399
msgstr ""
34003400

3401-
#: ../../reference/datamodel.rst:2998
3401+
#: ../../reference/datamodel.rst:2999
34023402
msgid ""
34033403
"Semantically similar to :meth:`__enter__`, the only difference being that it "
34043404
"must return an *awaitable*."
34053405
msgstr ""
34063406

3407-
#: ../../reference/datamodel.rst:3003
3407+
#: ../../reference/datamodel.rst:3004
34083408
msgid ""
34093409
"Semantically similar to :meth:`__exit__`, the only difference being that it "
34103410
"must return an *awaitable*."
34113411
msgstr ""
34123412

3413-
#: ../../reference/datamodel.rst:3006
3413+
#: ../../reference/datamodel.rst:3007
34143414
msgid "An example of an asynchronous context manager class::"
34153415
msgstr ""
34163416

3417-
#: ../../reference/datamodel.rst:3019
3417+
#: ../../reference/datamodel.rst:3020
34183418
msgid "Footnotes"
34193419
msgstr "註解"
34203420

3421-
#: ../../reference/datamodel.rst:3020
3421+
#: ../../reference/datamodel.rst:3021
34223422
msgid ""
34233423
"It *is* possible in some cases to change an object's type, under certain "
34243424
"controlled conditions. It generally isn't a good idea though, since it can "
34253425
"lead to some very strange behaviour if it is handled incorrectly."
34263426
msgstr ""
34273427

3428-
#: ../../reference/datamodel.rst:3024
3428+
#: ../../reference/datamodel.rst:3025
34293429
msgid ""
34303430
"The :meth:`~object.__hash__`, :meth:`~object.__iter__`, :meth:`~object."
34313431
"__reversed__`, and :meth:`~object.__contains__` methods have special "
34323432
"handling for this; others will still raise a :exc:`TypeError`, but may do so "
34333433
"by relying on the behavior that ``None`` is not callable."
34343434
msgstr ""
34353435

3436-
#: ../../reference/datamodel.rst:3030
3436+
#: ../../reference/datamodel.rst:3031
34373437
msgid ""
34383438
"\"Does not support\" here means that the class has no such method, or the "
34393439
"method returns ``NotImplemented``. Do not set the method to ``None`` if you "
34403440
"want to force fallback to the right operand's reflected method—that will "
34413441
"instead have the opposite effect of explicitly *blocking* such fallback."
34423442
msgstr ""
34433443

3444-
#: ../../reference/datamodel.rst:3036
3444+
#: ../../reference/datamodel.rst:3037
34453445
msgid ""
34463446
"For operands of the same type, it is assumed that if the non-reflected "
34473447
"method -- such as :meth:`~object.__add__` -- fails then the overall "

0 commit comments

Comments
 (0)
0