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