@@ -430,6 +430,8 @@ msgid ""
430
430
"interpreter evaluates the target except for the last :meth:`__setitem__` or "
431
431
":meth:`__setattr__` call."
432
432
msgstr ""
433
+ "右辺がある場合、注釈代入はアノテーション (有効であれば) を評価する前に、実際に代入を行います。\n"
434
+ "対象となる式の右辺が無い場合は、インタプリタは最後の :meth:`__setitem__` や :meth:`__setattr__` 呼び出し以外の対象の式を評価します。"
433
435
434
436
#: ../../reference/simple_stmts.rst:362
435
437
msgid ":pep:`526` - Syntax for Variable Annotations"
@@ -440,7 +442,7 @@ msgid ""
440
442
"The proposal that added syntax for annotating the types of variables "
441
443
"(including class variables and instance variables), instead of expressing "
442
444
"them through comments."
443
- msgstr ""
445
+ msgstr "(クラス変数やインスタンス変数を含んだ) 変数の型注釈を付ける、コメントで表現するのではない文法の追加提案。 "
444
446
445
447
#: ../../reference/simple_stmts.rst:366
446
448
msgid ":pep:`484` - Type hints"
@@ -451,7 +453,7 @@ msgid ""
451
453
"The proposal that added the :mod:`typing` module to provide a standard "
452
454
"syntax for type annotations that can be used in static analysis tools and "
453
455
"IDEs."
454
- msgstr ""
456
+ msgstr ":mod:`typing` モジュールを追加し、静的解析ツールや IDE で使える型アノテーションの標準的な文法を提供する提案。 "
455
457
456
458
#: ../../reference/simple_stmts.rst:373
457
459
msgid "The :keyword:`assert` statement"
@@ -483,6 +485,11 @@ msgid ""
483
485
"it is unnecessary to include the source code for the expression that failed "
484
486
"in the error message; it will be displayed as part of the stack trace."
485
487
msgstr ""
488
+ "上記の等価関係は、 ``__debug__`` と :exc:`AssertionError` "
489
+ "が、同名の組み込み変数を参照しているという前提の上に成り立っています。現在の実装では、組み込み変数 ``__debug__`` は通常の状況では "
490
+ "``True`` であり、最適化が要求された場合(コマンドラインオプション :option:`-O`)は ``False`` "
491
+ "です。現状のコード生成器は、コンパイル時に最適化が要求されていると assert "
492
+ "文のコードを一切出力しません。実行に失敗した式のソースコードをエラーメッセージ内に入れる必要はありません; コードはスタックトレース内で表示されます。"
486
493
487
494
#: ../../reference/simple_stmts.rst:409
488
495
msgid ""
0 commit comments