@@ -437,6 +437,8 @@ msgid ""
437
437
"interpreter evaluates the target except for the last :meth:`__setitem__` or "
438
438
":meth:`__setattr__` call."
439
439
msgstr ""
440
+ "右辺がある場合、注釈代入はアノテーション (有効であれば) を評価する前に、実際に代入を行います。\n"
441
+ "対象となる式の右辺が無い場合は、インタプリタは最後の :meth:`__setitem__` や :meth:`__setattr__` 呼び出し以外の対象の式を評価します。"
440
442
441
443
#: ../../reference/simple_stmts.rst:362
442
444
msgid ":pep:`526` - Syntax for Variable Annotations"
@@ -447,7 +449,7 @@ msgid ""
447
449
"The proposal that added syntax for annotating the types of variables "
448
450
"(including class variables and instance variables), instead of expressing "
449
451
"them through comments."
450
- msgstr ""
452
+ msgstr "(クラス変数やインスタンス変数を含んだ) 変数の型注釈を付ける、コメントで表現するのではない文法の追加提案。 "
451
453
452
454
#: ../../reference/simple_stmts.rst:366
453
455
msgid ":pep:`484` - Type hints"
@@ -458,11 +460,11 @@ msgid ""
458
460
"The proposal that added the :mod:`typing` module to provide a standard "
459
461
"syntax for type annotations that can be used in static analysis tools and "
460
462
"IDEs."
461
- msgstr ""
463
+ msgstr ":mod:`typing` モジュールを追加し、静的解析ツールや IDE で使える型アノテーションの標準的な文法を提供する提案。 "
462
464
463
465
#: ../../reference/simple_stmts.rst:373
464
466
msgid "The :keyword:`!assert` statement"
465
- msgstr ""
467
+ msgstr ":keyword:`!assert` 文 "
466
468
467
469
#: ../../reference/simple_stmts.rst:380
468
470
msgid ""
@@ -490,6 +492,11 @@ msgid ""
490
492
"it is unnecessary to include the source code for the expression that failed "
491
493
"in the error message; it will be displayed as part of the stack trace."
492
494
msgstr ""
495
+ "上記の等価関係は、 ``__debug__`` と :exc:`AssertionError` "
496
+ "が、同名の組み込み変数を参照しているという前提の上に成り立っています。現在の実装では、組み込み変数 ``__debug__`` は通常の状況では "
497
+ "``True`` であり、最適化が要求された場合(コマンドラインオプション :option:`-O`)は ``False`` "
498
+ "です。現状のコード生成器は、コンパイル時に最適化が要求されていると assert "
499
+ "文のコードを一切出力しません。実行に失敗した式のソースコードをエラーメッセージ内に入れる必要はありません; コードはスタックトレース内で表示されます。"
493
500
494
501
#: ../../reference/simple_stmts.rst:409
495
502
msgid ""
@@ -499,7 +506,7 @@ msgstr ":const:`__debug__` への代入は不正な操作です。組み込み
499
506
500
507
#: ../../reference/simple_stmts.rst:416
501
508
msgid "The :keyword:`!pass` statement"
502
- msgstr ""
509
+ msgstr ":keyword:`!pass` 文 "
503
510
504
511
#: ../../reference/simple_stmts.rst:426
505
512
msgid ""
@@ -558,7 +565,7 @@ msgstr "以前は、ある名前がネストしたブロックの自由変数と
558
565
559
566
#: ../../reference/simple_stmts.rst:477
560
567
msgid "The :keyword:`!return` statement"
561
- msgstr ""
568
+ msgstr ":keyword:`!return` 文 "
562
569
563
570
#: ../../reference/simple_stmts.rst:487
564
571
msgid ""
@@ -584,6 +591,8 @@ msgid ""
584
591
" a :keyword:`finally` clause, that :keyword:`!finally` clause is executed "
585
592
"before really leaving the function."
586
593
msgstr ""
<
E377
/td>
594
+ ":keyword:`return` によって、 :keyword:`finally` 節をともなう :keyword:`try` "
595
+ "文の外に処理が引き渡されると、実際に関数から抜ける前に :keyword:`!finally` 節が実行されます。"
587
596
588
597
#: ../../reference/simple_stmts.rst:501
589
598
msgid ""
@@ -603,10 +612,12 @@ msgid ""
603
612
":exc:`StopAsyncIteration` to be raised. A non-empty :keyword:`!return` "
604
613
"statement is a syntax error in an asynchronous generator function."
605
614
msgstr ""
615
+ "非同期ジェネレータ関数では、引数無しの :keyword:`return` 文は非同期ジェネレータの終わりを示し、 :exc:`StopAsyncIteration` を送出させます。\n"
616
+ "引数ありの :keyword:`!return` 文は、非同期ジェネレータ関数では文法エラーです。"
606
617
607
618
#: ../../reference/simple_stmts.rst:514
608
619
msgid "The :keyword:`!yield` statement"
609
- msgstr ""
620
+ msgstr ":keyword:`!yield` 文 "
610
621
611
622
#: ../../reference/simple_stmts.rst:526
612
623
msgid ""
@@ -640,7 +651,7 @@ msgstr ":keyword:`yield` の意味の完全な説明は、 :ref:`yieldexpr` 節
640
651
641
652
#: ../../reference/simple_stmts.rst:550
642
653
msgid "The :keyword:`!raise` statement"
643
- msgstr ""
654
+ msgstr ":keyword:`!raise` 文 "
644
655
645
656
#: ../../reference/simple_stmts.rst:561
646
657
msgid ""
@@ -730,7 +741,7 @@ msgstr "``__suppress_context__`` 属性の設定で、例外のコンテキス
730
741
731
742
#: ../../reference/simple_stmts.rst:653
732
743
msgid "The :keyword:`!break` statement"
733
- msgstr ""
744
+ msgstr ":keyword:`!break` 文 "
734
745
735
746
#: ../../reference/simple_stmts.rst:664
736
747
msgid ""
@@ -746,6 +757,8 @@ msgid ""
746
757
"It terminates the nearest enclosing loop, skipping the optional "
747
758
":keyword:`!else` clause if the loop has one."
748
759
msgstr ""
760
+ ":keyword:`break` 文は、文を囲う最も内側のループを終了させ、ループにオプションの :keyword:`!else` "
761
+ "節がある場合にはそれをスキップします。"
749
762
750
763
#: ../../reference/simple_stmts.rst:674
751
764
msgid ""
@@ -760,10 +773,12 @@ msgid ""
760
773
"a :keyword:`finally` clause, that :keyword:`!finally` clause is executed "
761
774
"before really leaving the loop."
762
775
msgstr ""
776
+ ":keyword:`break` が :keyword:`finally` 節を伴う :keyword:`try` "
777
+ "文の外側に処理を渡す際には、ループを実際に抜ける前にその :keyword:`!finally` 節が実行されます。"
763
778
764
779
#: ../../reference/simple_stmts.rst:687
765
780
msgid "The :keyword:`!continue` statement"
766
- msgstr ""
781
+ msgstr ":keyword:`!continue` 文 "
767
782
768
783
#: ../../reference/simple_stmts.rst:699
769
784
msgid ""
@@ -782,10 +797,12 @@ msgid ""
782
797
"with a :keyword:`finally` clause, that :keyword:`!finally` clause is "
783
798
"executed before really starting the next loop cycle."
784
799
msgstr ""
800
+ ":keyword:`continue` が :keyword:`finally` 句を持った :keyword:`try` 文を抜けるとき、その "
801
+ ":keyword:`!finally` 句が次のループサイクルを始める前に実行されます。"
785
802
786
803
#: ../../reference/simple_stmts.rst:713
787
804
msgid "The :keyword:`!import` statement"
788
- msgstr ""
805
+ msgstr ":keyword:`!import` 文 "
789
806
790
807
#: ../../reference/simple_stmts.rst:734
791
808
msgid ""
@@ -893,6 +910,8 @@ msgid ""
893
910
" the name in the :keyword:`!as` clause if it is present, otherwise using the"
894
911
" attribute name"
895
912
msgstr ""
913
+ "属性が見付かった場合は、 :keyword:`!as` "
914
+ "節があるならそこの名前、そうでないなら属性名を使って、その値への参照がローカル名前空間に保存される"
896
915
897
916
#: ../../reference/simple_stmts.rst:788
898
917
msgid "Examples::"
@@ -1019,7 +1038,7 @@ msgstr "その他の future 文。"
1019
1038
msgid ""
1020
1039
"The only feature in Python 3.7 that requires using the future statement is "
1021
1040
"``annotations``."
1022
- msgstr ""
1041
+ msgstr "future 文を使う必要がある Python 3.7 の唯一の機能は ``annotations`` です。 "
1023
1042
1024
1043
#: ../../reference/simple_stmts.rst:874
1025
1044
msgid ""
@@ -1030,6 +1049,9 @@ msgid ""
1030
1049
"redundant because they are always enabled, and only kept for backwards "
1031
1050
"compatibility."
1032
1051
msgstr ""
1052
+ "future 文で有効にできる歴史的な機能は、今でも Python 3 が認識します。\n"
1053
+ "そのリストは ``absolute_import``, ``division``, ``generator_stop``, ``generators``, ``unicode_literals``, ``print_function``, ``nested_scopes``, ``with_statement`` です。\n"
1054
+ "これらは既に全てが有効になっていて、後方互換性のためだけに残されているため、冗長なだけです。"
1033
1055
1034
1056
#: ../../reference/simple_stmts.rst:881
1035
1057
msgid ""
@@ -1112,7 +1134,7 @@ msgstr "__future__ 機構の原案"
1112
1134
1113
1135
#: ../../reference/simple_stmts.rst:927
1114
1136
msgid "The :keyword:`!global` statement"
1115
- msgstr ""
1137
+ msgstr ":keyword:`!global` 文 "
1116
1138
1117
1139
#: ../../reference/simple_stmts.rst:937
1118
1140
msgid ""
@@ -1122,12 +1144,17 @@ msgid ""
1122
1144
"variable without :keyword:`!global`, although free variables may refer to "
1123
1145
"globals without being declared global."
1124
1146
msgstr ""
1147
+ ":keyword:`global` 文は、現在のコードブロック全体で維持される宣言文です。 :keyword:`global` "
1148
+ "文は、列挙した識別子をグローバル変数として解釈するよう指定することを意味します。 :keyword:`!global` "
1149
+ "を使わずにグローバル変数に代入を行うことは不可能ですが、自由変数を使えばその変数をグローバルであると宣言せずにグローバル変数を参照することができます。"
1125
1150
1126
1151
#: ../../reference/simple_stmts.rst:943
1127
1152
msgid ""
1128
1153
"Names listed in a :keyword:`global` statement must not be used in the same "
1129
1154
"code block textually preceding that :keyword:`!global` statement."
1130
1155
msgstr ""
1156
+ ":keyword:`global` 文で列挙する名前は、同じコードブロック中で、プログラムテキスト上 :keyword:`!global` "
1157
+ "文より前に使ってはなりません。"
1131
1158
1132
1159
#: ../../reference/simple_stmts.rst:946
1133
1160
msgid ""
@@ -1158,10 +1185,15 @@ msgid ""
1158
1185
" containing the function call. The same applies to the :func:`eval` and "
1159
1186
":func:`compile` functions."
1160
1187
msgstr ""
1188
+ "**プログラマのための注意点:** :keyword:`global` はパーザに対する指示句 (directive) です。この指示句は、 "
1189
+ ":keyword:`!global` 文と同時に読み込まれたコードに対してのみ適用されます。特に、組み込みの :func:`exec` "
1190
+ "関数内に入っている :keyword:`!global` 文は、関数の呼び出しを *含んでいる* "
1191
+ "コードブロック内に効果を及ぼすことはなく、そのような文字列に含まれているコードは、関数の呼び出しを含むコード内の :keyword:`!global` "
1192
+ "文に影響を受けません。同様のことが、関数 :func:`eval` および :func:`compile` にも当てはまります。"
1161
1193
1162
1194
#: ../../reference/simple_stmts.rst:974
1163
1195
msgid "The :keyword:`!nonlocal` statement"
1164
- msgstr ""
1196
+ msgstr ":keyword:`!nonlocal` 文 "
1165
1197
1166
1198
#: ../../reference/simple_stmts.rst:986
1167
1199
msgid ""
0 commit comments