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

Skip to content

Commit a05f19f

Browse files
committed
[po] auto sync bot
1 parent ce68550 commit a05f19f

5 files changed

Lines changed: 30 additions & 16 deletions

File tree

reference/expressions.po

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,11 @@ msgid ""
598598
":meth:`~generator.throw` will just raise the passed in exception "
599599
"immediately."
600600
msgstr ""
601+
"当使用 ``yield from <expr>`` 时,它会将所提供的表达式视为一个子迭代器。 "
602+
"这个子迭代器产生的所有值都直接被传递给当前生成器方法的调用者。 通过 :meth:`~generator.send` 传入的任何值以及通过 "
603+
":meth:`~generator.throw` 传入的任何异常如果有适当的方法则会被传给下层迭代器。 如果不是这种情况,那么 "
604+
":meth:`~generator.send` 将引发 :exc:`AttributeError` 或 :exc:`TypeError`,而 "
605+
":meth:`~generator.throw` 将立即引发所传入的异常。"
601606

602607
#: ../../reference/expressions.rst:484
603608
msgid ""
@@ -607,10 +612,13 @@ msgid ""
607612
":exc:`StopIteration`, or automatically when the sub-iterator is a generator "
608613
"(by returning a value from the sub-generator)."
609614
msgstr ""
615+
"当下层迭代器完成时,被引发的 :exc:`StopIteration` 实例的 :attr:`~StopIteration.value` 属性会成为 "
616+
"yield 表达式的值。 它可以在引发 :exc:`StopIteration` "
617+
"时被显式地设置,也可以在子迭代器是一个生成器时自动地设置(通过从子生成器返回一个值)。"
610618

611619
#: ../../reference/expressions.rst:490
612620
msgid "Added ``yield from <expr>`` to delegate control flow to a subiterator."
613-
msgstr "添加 ``yield from <expr>`` ,以委托控制流给子迭代器"
621+
msgstr "添加 ``yield from <expr>`` 以委托控制流给一个子迭代器。"
614622

615623
#: ../../reference/expressions.rst:493
616624
msgid ""
@@ -620,43 +628,43 @@ msgstr "当yield表达式是赋值语句右侧的唯一表达式时,括号可
620628

621629
#: ../../reference/expressions.rst:499
622630
msgid ":pep:`255` - Simple Generators"
623-
msgstr ""
631+
msgstr ":pep:`255` - 简单生成器"
624632

625633
#: ../../reference/expressions.rst:499
626634
msgid ""
627635
"The proposal for adding generators and the :keyword:`yield` statement to "
628636
"Python."
629-
msgstr ""
637+
msgstr "在 Python 中加入生成器和 :keyword:`yield` 语句的提议。"
630638

631639
#: ../../reference/expressions.rst:503
632640
msgid ":pep:`342` - Coroutines via Enhanced Generators"
633-
msgstr ""
641+
msgstr ":pep:`342` - 通过增强型生成器实现协程"
634642

635643
#: ../../reference/expressions.rst:502
636644
msgid ""
637645
"The proposal to enhance the API and syntax of generators, making them usable"
638646
" as simple coroutines."
639-
msgstr ""
647+
msgstr "增强生成器 API 和语法的提议,使其可以被用作简单的协程。"
640648

641649
#: ../../reference/expressions.rst:507
642650
msgid ":pep:`380` - Syntax for Delegating to a Subgenerator"
643-
msgstr ""
651+
msgstr ":pep:`380` - 委托给子生成器的语法"
644652

645653
#: ../../reference/expressions.rst:506
646654
msgid ""
647655
"The proposal to introduce the :token:`yield_from` syntax, making delegation "
648656
"to sub-generators easy."
649-
msgstr ""
657+
msgstr "引入 :token:`yield_from` 语法的提议,以方便地委托给子生成器。"
650658

651659
#: ../../reference/expressions.rst:510
652660
msgid ":pep:`525` - Asynchronous Generators"
653-
msgstr ""
661+
msgstr ":pep:`525` - 异步生成器"
654662

655663
#: ../../reference/expressions.rst:510
656664
msgid ""
657665
"The proposal that expanded on :pep:`492` by adding generator capabilities to"
658666
" coroutine functions."
659-
msgstr ""
667+
msgstr "通过给协程函数加入生成器功能对 :pep:`492` 进行扩展的提议。"
660668

661669
#: ../../reference/expressions.rst:517
662670
msgid "Generator-iterator methods"

whatsnew/2.2.po

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Translators:
77
# Fei Yin <[email protected]>, 2018
8+
# Freesand Leo <[email protected]>, 2018
89
#
910
#, fuzzy
1011
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314
"Report-Msgid-Bugs-To: \n"
1415
"POT-Creation-Date: 2018-12-20 10:06+0900\n"
1516
"PO-Revision-Date: 2017-02-16 23:42+0000\n"
16-
"Last-Translator: Fei Yin <icebirds@163.com>, 2018\n"
17+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2018\n"
1718
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -742,7 +743,7 @@ msgstr ""
742743

743744
#: ../../whatsnew/2.2.rst:662
744745
msgid ":pep:`255` - Simple Generators"
745-
msgstr ""
746+
msgstr ":pep:`255` - 简单生成器"
746747

747748
#: ../../whatsnew/2.2.rst:662
748749
msgid ""

whatsnew/2.3.po

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Translators:
77
# Fei Yin <[email protected]>, 2018
8+
# Freesand Leo <[email protected]>, 2018
89
#
910
#, fuzzy
1011
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314
"Report-Msgid-Bugs-To: \n"
1415
"POT-Creation-Date: 2018-12-20 10:06+0900\n"
1516
"PO-Revision-Date: 2017-02-16 23:42+0000\n"
16-
"Last-Translator: Fei Yin <icebirds@163.com>, 2018\n"
17+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2018\n"
1718
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -255,7 +256,7 @@ msgstr ""
255256

256257
#: ../../whatsnew/2.3.rst:248
257258
msgid ":pep:`255` - Simple Generators"
258-
msgstr ""
259+
msgstr ":pep:`255` - 简单生成器"
259260

260261
#: ../../whatsnew/2.3.rst:248
261262
msgid ""

whatsnew/2.5.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ msgstr ""
639639

640640
#: ../../whatsnew/2.5.rst:549
641641
msgid ":pep:`342` - Coroutines via Enhanced Generators"
642-
msgstr ""
642+
msgstr ":pep:`342` - 通过增强型生成器实现协程"
643643

644644
#: ../../whatsnew/2.5.rst:545
645645
msgid ""

whatsnew/3.3.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
6+
# Translators:
7+
# Kaizhao Zhang <[email protected]>, 2018
8+
# Freesand Leo <[email protected]>, 2018
9+
#
610
#, fuzzy
711
msgid ""
812
msgstr ""
913
"Project-Id-Version: Python 3.7\n"
1014
"Report-Msgid-Bugs-To: \n"
1115
"POT-Creation-Date: 2018-10-11 09:24+0900\n"
12-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
16+
"PO-Revision-Date: 2017-02-16 23:44+0000\n"
1317
"Last-Translator: Freesand Leo <[email protected]>, 2018\n"
1418
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1519
"MIME-Version: 1.0\n"
@@ -638,7 +642,7 @@ msgstr ""
638642

639643
#: ../../whatsnew/3.3.rst:464
640644
msgid ":pep:`380` - Syntax for Delegating to a Subgenerator"
641-
msgstr ""
645+
msgstr ":pep:`380` - 委托给子生成器的语法"
642646

643647
#: ../../whatsnew/3.3.rst:463
644648
msgid ""

0 commit comments

Comments
 (0)