Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8384577

Browse files
committed
[po] auto sync bot
1 parent c56f836 commit 8384577

3 files changed

Lines changed: 3839 additions & 3778 deletions

File tree

library/asyncio-eventloop.po

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.7\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2018-11-08 09:41+0900\n"
18+
"POT-Creation-Date: 2018-12-05 09:55+0900\n"
1919
"PO-Revision-Date: 2017-02-16 17:48+0000\n"
2020
"Last-Translator: Freesand Leo <[email protected]>, 2018\n"
2121
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -991,10 +991,9 @@ msgstr ""
991991

992992
#: ../../library/asyncio-eventloop.rst:752
993993
#: ../../library/asyncio-eventloop.rst:966
994-
#: ../../library/asyncio-eventloop.rst:1036
995994
msgid ""
996995
"Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-"
997-
"keywords>` to *func*."
996+
"keywords>` to *callback*."
998997
msgstr ""
999998

1000999
#: ../../library/asyncio-eventloop.rst:757
@@ -1278,6 +1277,12 @@ msgstr ""
12781277
msgid "This method returns a :class:`asyncio.Future` object."
12791278
msgstr ""
12801279

1280+
#: ../../library/asyncio-eventloop.rst:1036
1281+
msgid ""
1282+
"Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-"
1283+
"keywords>` to *func*."
1284+
msgstr ""
1285+
12811286
#: ../../library/asyncio-eventloop.rst:1039
12821287
msgid ""
12831288
":meth:`loop.run_in_executor` no longer configures the ``max_workers`` of the"

reference/datamodel.po

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3424,24 +3424,30 @@ msgid ""
34243424
"method. :term:`Coroutine` objects returned from :keyword:`async def` "
34253425
"functions are awaitable."
34263426
msgstr ""
3427+
":term:`awaitable` 对象主要实现了 :meth:`__await__` 方法。 从 :keyword:`async def` 函数返回的"
3428+
" :term:`Coroutine` 对象即属于可等待对象。"
34273429

34283430
#: ../../reference/datamodel.rst:2559
34293431
msgid ""
34303432
"The :term:`generator iterator` objects returned from generators decorated "
34313433
"with :func:`types.coroutine` or :func:`asyncio.coroutine` are also "
34323434
"awaitable, but they do not implement :meth:`__await__`."
34333435
msgstr ""
3436+
"从带有 :func:`types.coroutine` 或 :func:`asyncio.coroutine` 装饰器的生成器返回的 "
3437+
":term:`generator iterator` 对象也属于可等待对象,但它们并未实现 :meth:`__await__`。"
34343438

34353439
#: ../../reference/datamodel.rst:2565
34363440
msgid ""
34373441
"Must return an :term:`iterator`. Should be used to implement "
34383442
":term:`awaitable` objects. For instance, :class:`asyncio.Future` implements"
34393443
" this method to be compatible with the :keyword:`await` expression."
34403444
msgstr ""
3445+
"必须返回一个 :term:`iterator`。 应当被用来实现 :term:`awaitable` 对象。 "
3446+
"例如,:class:`asyncio.Future` 实现了此方法以与 :keyword:`await` 表达式相兼容。"
34413447

34423448
#: ../../reference/datamodel.rst:2571
34433449
msgid ":pep:`492` for additional information about awaitable objects."
3444-
msgstr ""
3450+
msgstr ":pep:`492` 了解有关可等待对象的详细信息。"
34453451

34463452
#: ../../reference/datamodel.rst:2577
34473453
msgid "Coroutine Objects"
@@ -3457,17 +3463,23 @@ msgid ""
34573463
"coroutine raises an exception, it is propagated by the iterator. Coroutines"
34583464
" should not directly raise unhandled :exc:`StopIteration` exceptions."
34593465
msgstr ""
3466+
":term:`Coroutine` 对象属于 :term:`awaitable` 对象。 协程的执行可通过调用 :meth:`__await__` "
3467+
"并迭代其结果来进行控制。 当协程结束执行并返回时,迭代器会引发 :exc:`StopIteration`,该异常的 "
3468+
":attr:`~StopIteration.value` 属性将指向返回值。 如果协程引发了异常,它会被迭代器所传播。 协程不应该直接引发未处理的 "
3469+
":exc:`StopIteration` 异常。"
34603470

34613471
#: ../../reference/datamodel.rst:2587
34623472
msgid ""
34633473
"Coroutines also have the methods listed below, which are analogous to those "
34643474
"of generators (see :ref:`generator-methods`). However, unlike generators, "
34653475
"coroutines do not directly support iteration."
34663476
msgstr ""
3477+
"协程也具有下面列出的方法,它们类似于生成器的对应方法 (参见 :ref:`generator-methods`)。 "
3478+
"但是,与生成器不同,协程并不直接支持迭代。"
34673479

34683480
#: ../../reference/datamodel.rst:2591
34693481
msgid "It is a :exc:`RuntimeError` to await on a coroutine more than once."
3470-
msgstr ""
3482+
msgstr "等待一个协程超过一次将引发 :exc:`RuntimeError`。"
34713483

34723484
#: ../../reference/datamodel.rst:2597
34733485
msgid ""
@@ -3479,6 +3491,9 @@ msgid ""
34793491
"exception) is the same as when iterating over the :meth:`__await__` return "
34803492
"value, described above."
34813493
msgstr ""
3494+
"开始或恢复协程的执行。 如果 *value* 为 ``None``,则这相当于前往 :meth:`__await__` 所返回迭代器的下一项。 如果 "
3495+
"*value* 不为 ``None``,此方法将委托给导致协程挂起的迭代器的 :meth:`~generator.send` 方法。 "
3496+
"其结果(返回值,:exc:`StopIteration` 或是其他异常)将与上述对 :meth:`__await__` 返回值进行迭代的结果相同。"
34823497

34833498
#: ../../reference/datamodel.rst:2607
34843499
msgid ""
@@ -3490,6 +3505,9 @@ msgid ""
34903505
" the :meth:`__await__` return value, described above. If the exception is "
34913506
"not caught in the coroutine, it propagates back to the caller."
34923507
msgstr ""
3508+
"在协程内引发指定的异常。 此方法将委托给导致协程挂起的迭代器的 :meth:`~generator.throw` 方法,如果存在该方法。 "
3509+
"否则的话,异常会在挂起点被引发。 其结果(返回值,:exc:`StopIteration` 或是其他异常)将与上述对 :meth:`__await__`"
3510+
" 返回值进行迭代的结果相同。 如果异常未在协程内被捕获,则将回传给调用者。"
34933511

34943512
#: ../../reference/datamodel.rst:2618
34953513
msgid ""
@@ -3500,16 +3518,19 @@ msgid ""
35003518
"causing the coroutine to immediately clean itself up. Finally, the coroutine"
35013519
" is marked as having finished executing, even if it was never started."
35023520
msgstr ""
3521+
"此方法会使得协程清理自身并退出。 如果协程被挂起,此方法会先委托给导致协程挂起的迭代器的 :meth:`~generator.close` "
3522+
"方法,如果存在该方法。 然后它会在挂起点引发 :exc:`GeneratorExit`,使得协程立即清理自身。 "
3523+
"最后,协程会被标记为已结束执行,即使它根本未被启动。"
35033524

35043525
#: ../../reference/datamodel.rst:2626
35053526
msgid ""
35063527
"Coroutine objects are automatically closed using the above process when they"
35073528
" are about to be destroyed."
3508-
msgstr ""
3529+
msgstr "当协程对象将要被销毁时,会使用以上处理过程来自动关闭。"
35093530

35103531
#: ../../reference/datamodel.rst:2632
35113532
msgid "Asynchronous Iterators"
3512-
msgstr ""
3533+
msgstr "异步迭代器"
35133534

35143535
#: ../../reference/datamodel.rst:2634
35153536
msgid ""

0 commit comments

Comments
 (0)