@@ -306,6 +306,11 @@ msgid ""
306
306
"the try clause of the inner handler, the outer handler will not handle the "
307
307
"exception.)"
308
308
msgstr ""
309
+ "対応する except 節が見つかると、except 節のスイートが実行されます。その際、 :keyword:`!as` "
310
+ "キーワードが存在すれば、その後で指定されているターゲットに例外が代入されます。全ての :keyword:`except` "
311
+ "節は実行可能なブロックを持っていなければなりません。このブロックの末尾に到達すると、通常は :keyword:`try` "
312
+ "文全体の直後から実行を継続します。(このことは、ネストされた二つの例外ハンドラが同じ例外に対して存在し、内側のハンドラ内の :keyword:`try`"
313
+ " 節で例外が発生した場合、外側のハンドラはその例外を処理しないことを意味します。)"
309
314
310
315
#: ../../reference/compound_stmts.rst:276
311
316
msgid ""
@@ -354,6 +359,8 @@ msgid ""
354
359
"Exceptions in the :keyword:`!else` clause are not handled by the preceding "
355
360
":keyword:`except` clauses."
356
361
msgstr ""
362
+ "オプションの :keyword:`!else` 節は、コントロールフローが :keyword:`try` スイートを抜け、例外が送出されず、 :keyword:`return` 文、 :keyword:`continue` 文、 :keyword:`break` 文のいずれもが実行されなかった場合に実行されます。\n"
363
+ ":keyword:`!else` 節で起きた例外は、手前にある :keyword:`except` 節では処理されません。"
357
364
358
365
#: ../../reference/compound_stmts.rst:321
359
366
msgid ""
@@ -368,6 +375,13 @@ msgid ""
368
375
":keyword:`return` or :keyword:`break` statement, the saved exception is "
369
376
"discarded::"
370
377
msgstr ""
378
+ ":keyword:`finally` 節がある場合は、 '後始末 (cleanup)' の対処を指定します。まず :keyword:`except` "
379
+ "節や :keyword:`!else` 節を含め、 :keyword:`try` "
380
+ "節が実行されます。それらの節の中で例外が起き、誰も対処していない場合は、例外は一時的に保存されます。次に :!keyword:`finally` "
381
+ "節が実行されます。保存された例外があった場合は、 :keyword:`!finally` 節の末尾で再送出されます。 "
382
+ ":keyword:`!finally` 節で別の例外が送出される場合は、保存されていた例外は新しい例外のコンテキストとして設定されます。 "
383
+ ":keyword:`!finally` 節で :keyword:`return` 文あるいは :keyword:`break` "
384
+ "文を実行した場合は、保存された例外は破棄されます::"
371
385
372
386
#: ../../reference/compound_stmts.rst:340
373
387
msgid ""
@@ -384,6 +398,10 @@ msgid ""
384
398
" :keyword:`!finally` clause. (The reason is a problem with the current "
385
399
"implementation --- this restriction may be lifted in the future)."
386
400
msgstr ""
401
+ ":keyword:`!try`...\\ :keyword:`!finally` 文の :keyword:`try` スイート内で "
402
+ ":keyword:`return` 文、 :keyword:`break` 文、 :keyword:`continue` "
403
+ "文のいずれかが実行されたときは、'抜け出る途中で' :keyword:`finally` 節も実行されます。 :keyword:`!finally` "
404
+ "節での :keyword:`continue` 文の使用は不正です。 (理由は現在の実装上の問題です --- この制限は将来解消されるかもしれません)。"
387
405
388
406
#: ../../reference/compound_stmts.rst:355
389
407
msgid ""
@@ -392,6 +410,8 @@ msgid ""
392
410
":keyword:`!return` statement executed in the :keyword:`!finally` clause will"
393
411
" always be the last one executed::"
394
412
msgstr ""
413
+ "関数の返り値は最後に実行された :keyword:`return` 文によって決まります。\n"
414
+ ":keyword:`finally` 節は必ず実行されるため、:keyword:`!finally` 節で実行された :keyword:`!return` 文は常に最後に実行されることになります::"
395
415
396
416
#: ../../reference/compound_stmts.rst:369
397
417
msgid ""
@@ -404,7 +424,7 @@ msgstr ""
404
424
405
425
#: ../../reference/compound_stmts.rst:378
406
426
msgid "The :keyword:`!with` statement"
407
- msgstr ""
427
+ msgstr ":keyword:`!with` 文 "
408
428
409
429
#: ../../reference/compound_stmts.rst:387
410
430
msgid ""
@@ -649,6 +669,10 @@ msgid ""
649
669
"\" :keyword:`!def`\" form is actually more powerful since it allows the "
650
670
"execution of multiple statements and annotations."
651
671
msgstr ""
672
+ "式を即時に使用するために、無名関数 (名前に束縛されていない関数) を作成することもできます。\n"
673
+ "これは :ref:`lambda` の節で解説されているラムダ式を使います。\n"
674
+ "ラムダ式は簡略化された関数定義の簡略表現に過ぎないことに注意してください; \" :keyword:`def`\" 文で定義された関数もラムダ式で作成された関数のように、引数として渡せたり、他の名前に割り当てることができます。\n"
675
+ "複数の式とアノテーションが実行できるので、 \" :keyword:`!def`\" 形式の方がより強力です。"
652
676
653
677
#: ../../reference/compound_stmts.rst:596
654
678
msgid ""
@@ -672,11 +696,11 @@ msgstr "関数アノテーションの元の仕様書。"
672
696
673
697
#: ../../reference/compound_stmts.rst:608
674
698
msgid ":pep:`484` - Type Hints"
675
- msgstr ""
699
+ msgstr ":pep:`484` - 型ヒント "
676
700
677
701
#: ../../reference/compound_stmts.rst:608
678
702
msgid "Definition of a standard meaning for annotations: type hints."
679
- msgstr ""
703
+ msgstr "アノテーションの標準的な意味付けである型ヒントの定義。 "
680
704
681
705
#: ../../reference/compound_stmts.rst:612
682
706
msgid ":pep:`526` - Syntax for Variable Annotations"
@@ -686,17 +710,17 @@ msgstr ":pep:`526` - Syntax for Variable Annotations"
686
710
msgid ""
687
711
"Ability to type hint variable declarations, including class variables and "
688
712
"instance variables"
689
- msgstr ""
713
+ msgstr "クラス変数とインスタンス変数を含む変数に型ヒントが宣言できる機能 "
690
714
691
715
#: ../../reference/compound_stmts.rst:615
692
716
msgid ":pep:`563` - Postponed Evaluation of Annotations"
693
- msgstr ""
717
+ msgstr ":pep:`563` - アノテーションの遅延評価 "
694
718
695
719
#: ../../reference/compound_stmts.rst:615
696
720
msgid ""
697
721
"Support for forward references within annotations by preserving annotations "
698
722
"in a string form at runtime instead of eager evaluation."
699
- msgstr ""
723
+ msgstr "実行時にアノテーションを貪欲評価するのではなく文字列形式で保持することによる、アノテーションにおける前方参照のサポート "
700
724
701
725
#: ../../reference/compound_stmts.rst:622
702
726
msgid "Class definitions"
@@ -786,7 +810,7 @@ msgstr ":pep:`3115` - Metaclasses in Python 3000"
786
810
msgid ""
787
811
"The proposal that changed the declaration of metaclasses to the current "
788
812
"syntax, and the semantics for how classes with metaclasses are constructed."
789
- msgstr ""
813
+ msgstr "メタクラスの宣言を現在の文法と、メタクラス付きのクラスがどのように構築されるかの意味論を変更した提案 "
790
814
791
815
#: ../../reference/compound_stmts.rst:709
792
816
msgid ":pep:`3129` - Class Decorators"
@@ -797,6 +821,8 @@ msgid ""
797
821
"The proposal that added class decorators. Function and method decorators "
798
822
"were introduced in :pep:`318`."
799
823
msgstr ""
824
+ "クラスデコレータを追加した提案。\n"
825
+ "関数デコレータとメソッドデコレータは :pep:`318` で導入されました。"
800
826
801
827
#: ../../reference/compound_stmts.rst:716
802
828
msgid "Coroutines"
@@ -814,6 +840,8 @@ msgid ""
814
840
"expressions, :keyword:`async for` and :keyword:`async with` can only be used"
815
841
" in coroutine function bodies."
816
842
msgstr ""
843
+ "Python で実行しているコルーチンは多くの時点で一時停止と再開ができます (:term:`coroutine` を参照してください)。\n"
844
+ "コルーチン関数の本体では、 ``await`` 識別子と ``async`` 識別子は予約語になります; :keyword:`await` 式である :keyword:`async for` と :keyword:`async with` はコルーチン関数の本体でしか使えません。"
817
845
818
846
#: ../../reference/compound_stmts.rst:740
819
847
msgid ""
@@ -826,15 +854,15 @@ msgstr ""
826
854
msgid ""
827
855
"It is a :exc:`SyntaxError` to use a ``yield from`` expression inside the "
828
856
"body of a coroutine function."
829
- msgstr ""
857
+ msgstr "コルーチン関数の本体の中で ``yield from`` 式を使用すると :exc:`SyntaxError` になります。 "
830
858
831
859
#: ../../reference/compound_stmts.rst:746
832
860
msgid "An example of a coroutine function::"
833
861
msgstr "コルーチン関数の例::"
834
862
835
863
#: ../../reference/compound_stmts.rst:757
836
864
msgid "The :keyword:`!async for` statement"
837
- msgstr ""
865
+ msgstr ":keyword:`!async for` 文 "
838
866
839
867
#: ../../reference/compound_stmts.rst:762
840
868
msgid ""
@@ -869,11 +897,11 @@ msgstr "詳細は :meth:`__aiter__` や :meth:`__anext__` を参照してくだ
869
897
msgid ""
870
898
"It is a :exc:`SyntaxError` to use an ``async for`` statement outside the "
871
899
"body of a coroutine function."
872
- msgstr ""
900
+ msgstr "コルーチン関数の本体の外で ``async for`` 文を使用すると :exc:`SyntaxError` になります。 "
873
901
874
902
#: ../../reference/compound_stmts.rst:801
875
903
msgid "The :keyword:`!async with` statement"
876
- msgstr ""
904
+ msgstr ":keyword:`!async with` 文 "
877
905
878
906
#: ../../reference/compound_stmts.rst:806
879
907
msgid ""
@@ -891,7 +919,7 @@ msgstr "詳細は :meth:`__aenter__` や :meth:`__aexit__` を参照してくだ
891
919
msgid ""
892
920
"It is a :exc:`SyntaxError` to use an ``async with`` statement outside the "
893
921
"body of a coroutine function."
894
- msgstr ""
922
+ msgstr "コルーチン関数の本体の外で ``async with`` 文を使用すると :exc:`SyntaxError` になります。 "
895
923
896
924
#: ../../reference/compound_stmts.rst:837
897
925
msgid ":pep:`492` - Coroutines with async and await syntax"
@@ -901,7 +929,7 @@ msgstr ":pep:`492` - async 構文および await 構文付きのコルーチン"
901
929
msgid ""
902
930
"The proposal that made coroutines a proper standalone concept in Python, and"
903
931
" added supporting syntax."
904
- msgstr ""
932
+ msgstr "コルーチンを Python のまともな独り立ちした概念にし、サポートする構文を追加した提案。 "
905
933
906
934
#: ../../reference/compound_stmts.rst:842
907
935
msgid "Footnotes"
0 commit comments