Skip to content

Commit 4bed7e7

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython f80ba44f
1 parent 774cbba commit 4bed7e7

File tree

1 file changed

+36
-28
lines changed

1 file changed

+36
-28
lines changed

reference/datamodel.po

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-11-26 00:17+0000\n"
10+
"POT-Creation-Date: 2023-01-01 00:18+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-"
@@ -3344,14 +3344,22 @@ msgid ""
33443344
msgstr ""
33453345

33463346
#: ../../reference/datamodel.rst:2955
3347+
msgid ""
3348+
"The language doesn't place any restriction on the type or value of the "
3349+
"objects yielded by the iterator returned by ``__await__``, as this is "
3350+
"specific to the implementation of the asynchronous execution framework (e."
3351+
"g. :mod:`asyncio`) that will be managing the :term:`awaitable` object."
3352+
msgstr ""
3353+
3354+
#: ../../reference/datamodel.rst:2963
33473355
msgid ":pep:`492` for additional information about awaitable objects."
33483356
msgstr ""
33493357

3350-
#: ../../reference/datamodel.rst:2961
3358+
#: ../../reference/datamodel.rst:2969
33513359
msgid "Coroutine Objects"
33523360
msgstr ""
33533361

3354-
#: ../../reference/datamodel.rst:2963
3362+
#: ../../reference/datamodel.rst:2971
33553363
msgid ""
33563364
":term:`Coroutine objects <coroutine>` are :term:`awaitable` objects. A "
33573365
"coroutine's execution can be controlled by calling :meth:`~object.__await__` "
@@ -3362,18 +3370,18 @@ msgid ""
33623370
"should not directly raise unhandled :exc:`StopIteration` exceptions."
33633371
msgstr ""
33643372

3365-
#: ../../reference/datamodel.rst:2971
3373+
#: ../../reference/datamodel.rst:2979
33663374
msgid ""
33673375
"Coroutines also have the methods listed below, which are analogous to those "
33683376
"of generators (see :ref:`generator-methods`). However, unlike generators, "
33693377
"coroutines do not directly support iteration."
33703378
msgstr ""
33713379

3372-
#: ../../reference/datamodel.rst:2975
3380+
#: ../../reference/datamodel.rst:2983
33733381
msgid "It is a :exc:`RuntimeError` to await on a coroutine more than once."
33743382
msgstr ""
33753383

3376-
#: ../../reference/datamodel.rst:2981
3384+
#: ../../reference/datamodel.rst:2989
33773385
msgid ""
33783386
"Starts or resumes execution of the coroutine. If *value* is ``None``, this "
33793387
"is equivalent to advancing the iterator returned by :meth:`~object."
@@ -3384,7 +3392,7 @@ msgid ""
33843392
"value, described above."
33853393
msgstr ""
33863394

3387-
#: ../../reference/datamodel.rst:2992
3395+
#: ../../reference/datamodel.rst:3000
33883396
msgid ""
33893397
"Raises the specified exception in the coroutine. This method delegates to "
33903398
"the :meth:`~generator.throw` method of the iterator that caused the "
@@ -3395,7 +3403,7 @@ msgid ""
33953403
"not caught in the coroutine, it propagates back to the caller."
33963404
msgstr ""
33973405

3398-
#: ../../reference/datamodel.rst:3003
3406+
#: ../../reference/datamodel.rst:3011
33993407
msgid ""
34003408
"Causes the coroutine to clean itself up and exit. If the coroutine is "
34013409
"suspended, this method first delegates to the :meth:`~generator.close` "
@@ -3405,115 +3413,115 @@ msgid ""
34053413
"is marked as having finished executing, even if it was never started."
34063414
msgstr ""
34073415

3408-
#: ../../reference/datamodel.rst:3011
3416+
#: ../../reference/datamodel.rst:3019
34093417
msgid ""
34103418
"Coroutine objects are automatically closed using the above process when they "
34113419
"are about to be destroyed."
34123420
msgstr ""
34133421

3414-
#: ../../reference/datamodel.rst:3017
3422+
#: ../../reference/datamodel.rst:3025
34153423
msgid "Asynchronous Iterators"
34163424
msgstr ""
34173425

3418-
#: ../../reference/datamodel.rst:3019
3426+
#: ../../reference/datamodel.rst:3027
34193427
msgid ""
34203428
"An *asynchronous iterator* can call asynchronous code in its ``__anext__`` "
34213429
"method."
34223430
msgstr ""
34233431

3424-
#: ../../reference/datamodel.rst:3022
3432+
#: ../../reference/datamodel.rst:3030
34253433
msgid ""
34263434
"Asynchronous iterators can be used in an :keyword:`async for` statement."
34273435
msgstr ""
34283436

3429-
#: ../../reference/datamodel.rst:3026
3437+
#: ../../reference/datamodel.rst:3034
34303438
msgid "Must return an *asynchronous iterator* object."
34313439
msgstr ""
34323440

3433-
#: ../../reference/datamodel.rst:3030
3441+
#: ../../reference/datamodel.rst:3038
34343442
msgid ""
34353443
"Must return an *awaitable* resulting in a next value of the iterator. "
34363444
"Should raise a :exc:`StopAsyncIteration` error when the iteration is over."
34373445
msgstr ""
34383446

3439-
#: ../../reference/datamodel.rst:3033
3447+
#: ../../reference/datamodel.rst:3041
34403448
msgid "An example of an asynchronous iterable object::"
34413449
msgstr ""
34423450

3443-
#: ../../reference/datamodel.rst:3050
3451+
#: ../../reference/datamodel.rst:3058
34443452
msgid ""
34453453
"Prior to Python 3.7, :meth:`~object.__aiter__` could return an *awaitable* "
34463454
"that would resolve to an :term:`asynchronous iterator <asynchronous "
34473455
"iterator>`."
34483456
msgstr ""
34493457

3450-
#: ../../reference/datamodel.rst:3055
3458+
#: ../../reference/datamodel.rst:3063
34513459
msgid ""
34523460
"Starting with Python 3.7, :meth:`~object.__aiter__` must return an "
34533461
"asynchronous iterator object. Returning anything else will result in a :exc:"
34543462
"`TypeError` error."
34553463
msgstr ""
34563464

3457-
#: ../../reference/datamodel.rst:3063
3465+
#: ../../reference/datamodel.rst:3071
34583466
msgid "Asynchronous Context Managers"
34593467
msgstr ""
34603468

3461-
#: ../../reference/datamodel.rst:3065
3469+
#: ../../reference/datamodel.rst:3073
34623470
msgid ""
34633471
"An *asynchronous context manager* is a *context manager* that is able to "
34643472
"suspend execution in its ``__aenter__`` and ``__aexit__`` methods."
34653473
msgstr ""
34663474

3467-
#: ../../reference/datamodel.rst:3068
3475+
#: ../../reference/datamodel.rst:3076
34683476
msgid ""
34693477
"Asynchronous context managers can be used in an :keyword:`async with` "
34703478
"statement."
34713479
msgstr ""
34723480

3473-
#: ../../reference/datamodel.rst:3072
3481+
#: ../../reference/datamodel.rst:3080
34743482
msgid ""
34753483
"Semantically similar to :meth:`__enter__`, the only difference being that it "
34763484
"must return an *awaitable*."
34773485
msgstr ""
34783486

3479-
#: ../../reference/datamodel.rst:3077
3487+
#: ../../reference/datamodel.rst:3085
34803488
msgid ""
34813489
"Semantically similar to :meth:`__exit__`, the only difference being that it "
34823490
"must return an *awaitable*."
34833491
msgstr ""
34843492

3485-
#: ../../reference/datamodel.rst:3080
3493+
#: ../../reference/datamodel.rst:3088
34863494
msgid "An example of an asynchronous context manager class::"
34873495
msgstr ""
34883496

3489-
#: ../../reference/datamodel.rst:3093
3497+
#: ../../reference/datamodel.rst:3101
34903498
msgid "Footnotes"
34913499
msgstr "註解"
34923500

3493-
#: ../../reference/datamodel.rst:3094
3501+
#: ../../reference/datamodel.rst:3102
34943502
msgid ""
34953503
"It *is* possible in some cases to change an object's type, under certain "
34963504
"controlled conditions. It generally isn't a good idea though, since it can "
34973505
"lead to some very strange behaviour if it is handled incorrectly."
34983506
msgstr ""
34993507

3500-
#: ../../reference/datamodel.rst:3098
3508+
#: ../../reference/datamodel.rst:3106
35013509
msgid ""
35023510
"The :meth:`~object.__hash__`, :meth:`~object.__iter__`, :meth:`~object."
35033511
"__reversed__`, and :meth:`~object.__contains__` methods have special "
35043512
"handling for this; others will still raise a :exc:`TypeError`, but may do so "
35053513
"by relying on the behavior that ``None`` is not callable."
35063514
msgstr ""
35073515

3508-
#: ../../reference/datamodel.rst:3104
3516+
#: ../../reference/datamodel.rst:3112
35093517
msgid ""
35103518
"\"Does not support\" here means that the class has no such method, or the "
35113519
"method returns ``NotImplemented``. Do not set the method to ``None`` if you "
35123520
"want to force fallback to the right operand's reflected method—that will "
35133521
"instead have the opposite effect of explicitly *blocking* such fallback."
35143522
msgstr ""
35153523

3516-
#: ../../reference/datamodel.rst:3110
3524+
#: ../../reference/datamodel.rst:3118
35173525
msgid ""
35183526
"For operands of the same type, it is assumed that if the non-reflected "
35193527
"method -- such as :meth:`~object.__add__` -- fails then the overall "

0 commit comments

Comments
 (0)