@@ -670,9 +670,9 @@ msgstr ""
670670"マッチ成功・失敗の具体的なルールは後述します。\n"
671671"マッチングのチェックにより、パターン内の名前の一部あるいはすべてに値が束縛さ"
672672"れます。\n"
673- "具体的な束縛ルールはパターンの種類によって異なるため、後述します。 **成功した "
674- "マッチで束縛された名前は、そのブロックの実行後も存続し、 match 文の後も使用す "
675- "ることができます **。"
673+ "具体的な束縛ルールはパターンの種類によって異なるため、後述します。\n "
674+ "**マッチが成功したパターンの中で束縛された名前は、そのパターンのブロック内だ "
675+ "けでなく、 match 文の後でも使用することができます **。"
676676
677677#: ../../reference/compound_stmts.rst:559
678678msgid ""
@@ -682,26 +682,40 @@ msgid ""
682682"dependent on implementation and may vary. This is an intentional decision "
683683"made to allow different implementations to add optimizations."
684684msgstr ""
685+ "パターンマッチが全体として失敗しても、その中に含まれるサブパターンが成功する"
686+ "可能性があります。\n"
687+ "失敗したマッチで発生する名前束縛を前提としたコードを書かないように気をつけて"
688+ "ください。\n"
689+ "逆に、マッチが失敗したあとで変数の値が変わっていないというのも前提にしないで"
690+ "ください。\n"
691+ "実際どういう振る舞いになるかは Python の実装依存であり、実装間で異なる可能性"
692+ "があります。\n"
693+ "色々な実装が最適化を行えるよう、意図的に実装依存としています。"
685694
686695#: ../../reference/compound_stmts.rst:566
687696msgid ""
688697"If the pattern succeeds, the corresponding guard (if present) is evaluated. "
689698"In this case all name bindings are guaranteed to have happened."
690699msgstr ""
700+ "パターンが成功した場合、該当のガードが (もしあれば) 評価されます。\n"
701+ "この場合、パターン内の名前がすべて束縛されていることが保証されています。"
691702
692703#: ../../reference/compound_stmts.rst:569
693704msgid ""
694705"If the guard evaluates as true or is missing, the ``block`` inside "
695706"``case_block`` is executed."
696707msgstr ""
708+ "ガードの評価値が真であるか、もしくはガードがなければ、 ``case_block`` 内の "
709+ "``block`` が実行されます。"
697710
698711#: ../../reference/compound_stmts.rst:572
699712msgid "Otherwise, the next ``case_block`` is attempted as described above."
700713msgstr ""
714+ "そうでなければ、次の ``case_block`` に対して再び上記の処理が実行されます。"
701715
702716#: ../../reference/compound_stmts.rst:574
703717msgid "If there are no further case blocks, the match statement is completed."
704- msgstr ""
718+ msgstr "これ以上 case block が存在しない場合は、 match 文が終了します。 "
705719
706720#: ../../reference/compound_stmts.rst:578
707721msgid ""
0 commit comments