File tree Expand file tree Collapse file tree 5 files changed +43
-1
lines changed
Expand file tree Collapse file tree 5 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,11 @@ msgid ""
116116"printed and the Python process will exit with the error code specified by "
117117"the ``SystemExit`` instance."
118118msgstr ""
119+ "標準のトレースバックを ``sys.stderr`` に出力し、エラーインジケータをクリアし"
120+ "ます。\n"
121+ "ただし、エラーが ``SystemExit`` **である場合を除いて** です。\n"
122+ "その場合、トレースバックは出力されず、 Python プロセスは ``SystemExit`` イン"
123+ "スタンスで指定されたエラーコードで終了します。"
119124
120125#: ../../c-api/exceptions.rst:60
121126msgid ""
Original file line number Diff line number Diff line change @@ -539,6 +539,11 @@ msgid ""
539539"immediately be thrown; this is used for the :meth:`~generator.throw` methods "
540540"of generator objects."
541541msgstr ""
542+ "Python のインタープリタの主要な、直接的な関数です。実行フレーム *f* に関連付"
543+ "けられたコードオブジェクトを実行します。 バイトコードを解釈して、必要に応じて"
544+ "呼び出しを実行します。 追加の *throwflag* 引数はほとんど無視できます。 - も"
545+ "し true なら、 すぐに例外を発生させます。これはジェネレータオブジェクトの :"
546+ "meth:`~generator.throw` メソッドで利用されます。"
542547
543548#: ../../c-api/veryhigh.rst:345
544549msgid ""
@@ -601,10 +606,12 @@ msgid ""
601606"as equal to ``0``, and any modification due to ``from __future__ import`` is "
602607"discarded."
603608msgstr ""
609+ "``PyCompilerFlags *flags`` が ``NULL`` の場合、 :attr:`cf_flags` は ``0`` と"
610+ "して扱われ、 ``from __future__ import`` による変更は無視されます。"
604611
605612#: ../../c-api/veryhigh.rst:395
606613msgid "Compiler flags."
607- msgstr ""
614+ msgstr "コンパイラフラグ。 "
608615
609616#: ../../c-api/veryhigh.rst:399
610617msgid ""
Original file line number Diff line number Diff line change @@ -2272,6 +2272,10 @@ msgid ""
22722272"iterating over ``y``. If an exception is raised during the iteration, it is "
22732273"as if :keyword:`in` raised that exception."
22742274msgstr ""
2275+ ":meth:`__contains__` を定義していないが :meth:`__iter__` は定義しているユーザ"
2276+ "定義クラスでは、 ``x in y`` は ``x is z or x == z`` が真となるようなある値 "
2277+ "``z`` が ``y`` 内にわたる反復で生成された場合、 ``True`` となります。もし、反"
2278+ "復の間に例外が発生すれば、 :keyword:`in` が例外を発生させたようにみえます。"
22752279
22762280#: ../../reference/expressions.rst:1570
22772281msgid ""
@@ -2281,6 +2285,12 @@ msgid ""
22812285"index raises the :exc:`IndexError` exception. (If any other exception is "
22822286"raised, it is as if :keyword:`in` raised that exception)."
22832287msgstr ""
2288+ "最終的には、旧式の反復プロトコルの実行を試みます、もし :meth:`__getitem__` を"
2289+ "定義しているようなユーザ定義クラスでは、 ``x in y`` は ``x is y[i] or x == "
2290+ "y[i]`` となるような非負の整数インデクス *i* が存在し、それより小さい整数イン"
2291+ "デクスが :exc:`IndexError` を送出しないとき、かつそのときにかぎり ``True`` と"
2292+ "なります。 (別の何らかの例外が送出された場合、例外は :keyword:`in` から送出さ"
2293+ "れたかのようになります)。"
22842294
22852295#: ../../reference/expressions.rst:1582
22862296msgid ""
Original file line number Diff line number Diff line change @@ -232,6 +232,13 @@ msgid ""
232232"the right-hand side expression refers to a class attribute, the left-hand "
233233"side creates a new instance attribute as the target of the assignment::"
234234msgstr ""
235+ "注意: オブジェクトがクラスインスタンスで、代入演算子の両辺に属性参照があると"
236+ "き、右辺式の ``a.x`` はインスタンスの属性と (インスタンスの属性が存在しなけれ"
237+ "ば) クラス属性のどちらにもアクセスする可能性があります。左辺のターゲット ``a."
238+ "x`` は常にインスタンスの属性として割り当てられ、必要ならば生成されます。この"
239+ "とおり、現れる二つの ``a.x`` は同じ値を参照するとは限りません: 右辺式はクラス"
240+ "属性を参照し、左辺は新しいインスタンス属性を代入のターゲットとして生成するよ"
241+ "うなとき::"
235242
236243#: ../../reference/simple_stmts.rst:185
237244msgid ""
@@ -892,6 +899,10 @@ msgid ""
892899"within that loop. It continues with the next cycle of the nearest enclosing "
893900"loop."
894901msgstr ""
902+ ":keyword:`continue` 文は :keyword:`for` ループや :keyword:`while` ループ内の"
903+ "ネストで構文法的にのみ現れますが、ループ内の関数定義やクラス定義の中には現れ"
904+ "ません。 :keyword:`continue` 文は、文を囲う最も内側のループの次の周期に処理を"
905+ "継続します。"
895906
896907#: ../../reference/simple_stmts.rst:711
897908msgid ""
@@ -1177,6 +1188,8 @@ msgid ""
11771188"The only feature that requires using the future statement is ``annotations`` "
11781189"(see :pep:`563`)."
11791190msgstr ""
1191+ "future 文を使う必要がある唯一の機能は ``annotations`` です (:pep:`563` を参照"
1192+ "してください)。"
11801193
11811194#: ../../reference/simple_stmts.rst:883
11821195msgid ""
Original file line number Diff line number Diff line change @@ -660,6 +660,8 @@ msgid ""
660660"See :ref:`warning-filter` and :ref:`describing-warning-filters` for more "
661661"details."
662662msgstr ""
663+ "詳しくは :ref:`warning-filter` と :ref:`describing-warning-filters` を参照し"
664+ "てください。"
663665
664666#: ../../using/cmdline.rst:419
665667msgid ""
@@ -1023,6 +1025,8 @@ msgid ""
10231025"If this variable is not set or set to ``random``, a random value is used to "
10241026"seed the hashes of str and bytes objects."
10251027msgstr ""
1028+ "この変数が設定されていない場合や ``random`` に設定された場合、乱数値が str、"
1029+ "bytes オブジェクトのハッシュのシードに使われます。"
10261030
10271031#: ../../using/cmdline.rst:636
10281032msgid ""
@@ -1224,6 +1228,9 @@ msgid ""
12241228"`pymalloc memory allocator <pymalloc>` every time a new pymalloc object "
12251229"arena is created, and on shutdown."
12261230msgstr ""
1231+ "空でない文字列に設定されると、Python は新たなオブジェクトアリーナが生成される"
1232+ "時と、シャットダウン時に :ref:`pymalloc メモリアロケータ <pymalloc>` の統計情"
1233+ "報を表示します。"
12271234
12281235#: ../../using/cmdline.rst:795
12291236msgid ""
You can’t perform that action at this time.
0 commit comments