Skip to content

Commit 5b9c94c

Browse files
author
Autobuild bot on TravisCI
committed
[skip ci] Update .po files
1 parent c25b3c9 commit 5b9c94c

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

reference/expressions.po

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,9 @@ msgid ""
520520
":keyword:`async def` function's body causes that coroutine function to be an"
521521
" asynchronous generator. For example::"
522522
msgstr ""
523+
"yield 式は :term:`ジェネレータ <generator>` 関数や term:`非同期ジェネレータ <asynchronous generator>` を定義するときに使われます。従って、関数定義の本体でのみ使えます。\n"
524+
"関数の本体で yield 式 を使用するとその関数はジェネレータになり、 :keyword:`async def` 関数の本体で使用するとそのコルーチン関数は非同期ジェネレータになります。\n"
525+
"例えば次のようになります::"
523526

524527
#: ../../reference/expressions.rst:427
525528
msgid ""
@@ -529,19 +532,25 @@ msgid ""
529532
"emit :exc:`DeprecationWarning` when compiled, in Python 3.8+ they will emit "
530533
":exc:`SyntaxError`).."
531534
msgstr ""
535+
"含まれているスコープの副作用のため、 ``yield`` "
536+
"式は暗黙的に定義されたスコープの一部として内包表記やジェネレータ式を実装するのに使うことは許可されていません (Python 3.7 "
537+
"では、そのような式はコンパイル時に :exc:`DeprecationWarning` を発生させ、 Python 3.8 以降では "
538+
":exc:`SyntaxError` を発生させます)。 "
532539

533540
#: ../../reference/expressions.rst:433
534541
msgid ""
535542
"Yield expressions deprecated in the implicitly nested scopes used to "
536543
"implement comprehensions and generator expressions."
537-
msgstr ""
544+
msgstr "yield 式は、暗黙的な入れ子のスコープで内包表記やジェネレータ式を実装するための使用が非推奨になりました。"
538545

539546
#: ../../reference/expressions.rst:437
540547
msgid ""
541548
"Generator functions are described below, while asynchronous generator "
542549
"functions are described separately in section :ref:`asynchronous-generator-"
543550
"functions`."
544551
msgstr ""
552+
"ジェネレータ関数についてはすぐ下で説明されています。非同期ジェネレータ関数は、 :ref:`asynchronous-generator-"
553+
"functions` 節に分けて説明されています。"
545554

546555
#: ../../reference/expressions.rst:441
547556
msgid ""
@@ -652,7 +661,7 @@ msgstr ":pep:`0342` - 拡張されたジェネレータを用いたコルーチ
652661
msgid ""
653662
"The proposal to enhance the API and syntax of generators, making them usable"
654663
" as simple coroutines."
655-
msgstr "シンプルなコルーチンとして利用できるように、ジェネレータの構文と API を拡張する提案です。"
664+
msgstr "シンプルなコルーチンとして利用できるように、ジェネレータの構文と API を拡張する提案。"
656665

657666
#: ../../reference/expressions.rst:507
658667
msgid ":pep:`380` - Syntax for Delegating to a Subgenerator"
@@ -672,7 +681,7 @@ msgstr ":pep:`525` - 非同期ジェネレータ"
672681
msgid ""
673682
"The proposal that expanded on :pep:`492` by adding generator capabilities to"
674683
" coroutine functions."
675-
msgstr ""
684+
msgstr "コルーチン関数へのジェネレータの実装能力の追加による :pep:`492` の拡張提案。"
676685

677686
#: ../../reference/expressions.rst:517
678687
msgid "Generator-iterator methods"
@@ -753,6 +762,10 @@ msgid ""
753762
" it is propagated to the caller. :meth:`close` does nothing if the "
754763
"generator has already exited due to an exception or normal exit."
755764
msgstr ""
765+
"ジェネレータ関数が一時停止した時点で :exc:`GeneratorExit` を発生させます。\n"
766+
"そして、ジェネレータ関数が無事に終了するか、既にクローズされているか、(例外が捕捉されなかったために) :exc:`GeneratorExit` が送出された場合、 close は呼び出し元へ戻ります。\n"
767+
"ジェネレータが値を生成する場合 :exc:`RuntimeError` が発生します。\n"
768+
":meth:`close` はジェネレータが例外や正常な終了により既に終了している場合は何もしません。"
756769

757770
#: ../../reference/expressions.rst:578
758771
msgid "Examples"
@@ -781,6 +794,8 @@ msgid ""
781794
":keyword:`async def` further defines the function as a :term:`asynchronous "
782795
"generator` function."
783796
msgstr ""
797+
":keyword:`async def` を使用して定義された関数やメソッドに yield 式があると、その関数は :term:`非同期ジェネレータ "
798+
"<asynchronous generator>` 関数として定義されます。"
784799

785800
#: ../../reference/expressions.rst:619
786801
msgid ""
@@ -987,7 +1002,7 @@ msgstr ""
9871002
msgid ""
9881003
"If the primary is a sequence, the expression list must evaluate to an "
9891004
"integer or a slice (as discussed in the following section)."
990-
msgstr ""
1005+
msgstr "プライマリがシーケンスであれば、式リストの評価結果は整数またはスライス (以下の節で論じます) でなければなりません。"
9911006

9921007
#: ../../reference/expressions.rst:819
9931008
msgid ""

0 commit comments

Comments
 (0)