@@ -16,7 +16,7 @@ msgid ""
1616msgstr ""
1717"Project-Id-Version : Python 3.9\n "
1818"Report-Msgid-Bugs-To : \n "
19- "POT-Creation-Date : 2021-01-01 05:02 +0000\n "
19+ "POT-Creation-Date : 2021-02-21 05:30 +0000\n "
2020"PO-Revision-Date : 2017-02-16 23:38+0000\n "
2121"
Last-Translator :
Freesand Leo <[email protected] >, 2021\n "
2222"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -581,21 +581,16 @@ msgstr ""
581581
582582#: ../../reference/expressions.rst:479
583583msgid ""
584- "When ``yield from <expr>`` is used, it treats the supplied expression as a "
585- "subiterator. All values produced by that subiterator are passed directly to "
586- "the caller of the current generator's methods. Any values passed in with "
587- ":meth:`~generator.send` and any exceptions passed in with "
584+ "When ``yield from <expr>`` is used, the supplied expression must be an "
585+ "iterable. The values produced by iterating that iterable are passed directly"
586+ " to the caller of the current generator's methods. Any values passed in with"
587+ " :meth:`~generator.send` and any exceptions passed in with "
588588":meth:`~generator.throw` are passed to the underlying iterator if it has the"
589589" appropriate methods. If this is not the case, then :meth:`~generator.send`"
590590" will raise :exc:`AttributeError` or :exc:`TypeError`, while "
591591":meth:`~generator.throw` will just raise the passed in exception "
592592"immediately."
593593msgstr ""
594- "当使用 ``yield from <expr>`` 时,它会将所提供的表达式视为一个子迭代器。 "
595- "这个子迭代器产生的所有值都直接被传递给当前生成器方法的调用者。 通过 :meth:`~generator.send` 传入的任何值以及通过 "
596- ":meth:`~generator.throw` 传入的任何异常如果有适当的方法则会被传给下层迭代器。 如果不是这种情况,那么 "
597- ":meth:`~generator.send` 将引发 :exc:`AttributeError` 或 :exc:`TypeError`,而 "
598- ":meth:`~generator.throw` 将立即引发所传入的异常。"
599594
600595#: ../../reference/expressions.rst:488
601596msgid ""
0 commit comments