@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version :Python 3.8\n "
13
13
"Report-Msgid-Bugs-To :\n "
14
- "POT-Creation-Date :2021-01-01 16:06 +0000\n "
14
+ "POT-Creation-Date :2021-03-15 16:44 +0000\n "
15
15
"PO-Revision-Date :2020-05-30 11:53+0000\n "
16
16
"Last-Translator :tomo, 2020\n "
17
17
"Language-Team :Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -963,33 +963,41 @@ msgstr "なぜ goto が無いのですか?"
963
963
964
964
#: ../../faq/design.rst:602
965
965
msgid ""
966
- "You can use exceptions to provide a\" structured goto\" that even works "
967
- "across function calls. Many feel that exceptions can conveniently emulate "
966
+ "In the 1970s people realized that unrestricted goto could lead to messy "
967
+ "\" sphagetti\" code that was hard to understand and revise. In a high-level "
968
+ "language, it is also unneeded as long as there are ways to branch (in "
969
+ "Python, with ``if`` statements and ``or``, ``and``, and ``if-else`` "
970
+ "expressions) and loop (with ``while`` and ``for`` statements, possibly "
971
+ "containing ``continue`` and ``break``)."
972
+ msgstr ""
973
+
974
+ #: ../../faq/design.rst:609
975
+ msgid ""
976
+ "One can also use exceptions to provide a\" structured goto\" that works even"
977
+ " across function calls. Many feel that exceptions can conveniently emulate "
968
978
"all reasonable uses of the\" go\" or\" goto\" constructs of C, Fortran, and "
969
979
"other languages. For example::"
970
980
msgstr ""
971
- "関数の呼び出しをまたいでも動作する\" 構造化された goto\" をまかなうものとして例外を使えます。C、Fortran、その他の言語での "
972
- "\" go\" あるいは\" goto\" 構造の適切な用途は全て、例外で同じようなことををすれば便利であると、広く感じられています。例えば::"
973
981
974
- #: ../../faq/design.rst:617
982
+ #: ../../faq/design.rst:625
975
983
msgid ""
976
984
"This doesn't allow you to jump into the middle of a loop, but that's usually"
977
985
" considered an abuse of goto anyway. Use sparingly."
978
986
msgstr "例外ではループ内へ跳ぶことはできませんが、どちらにしてもそれは goto の乱用と見なされるものです。使うのは控えてください。"
979
987
980
- #: ../../faq/design.rst:622
988
+ #: ../../faq/design.rst:630
981
989
msgid "Why can't raw strings (r-strings) end with a backslash?"
982
990
msgstr "なぜ raw 文字列 (r-strings) はバックスラッシュで終わってはいけないのですか?"
983
991
984
- #: ../../faq/design.rst:624
992
+ #: ../../faq/design.rst:632
985
993
msgid ""
986
994
"More precisely, they can't end with an odd number of backslashes: the "
987
995
"unpaired backslash at the end escapes the closing quote character, leaving "
988
996
"an unterminated string."
989
997
msgstr ""
990
998
"正確には、奇数個のバックスラッシュで終わってはいけません。終わりの対になっていないバックスラッシュは、閉じ引用文字をエスケープし、終っていない文字列を残してしまいます。"
991
999
992
- #: ../../faq/design.rst:628
1000
+ #: ../../faq/design.rst:636
993
1001
msgid ""
994
1002
"Raw strings were designed to ease creating input for processors (chiefly "
995
1003
"regular expression engines) that want to do their own backslash escape "
@@ -1003,22 +1011,22 @@ msgstr ""
1003
1011
"文字列はそれを認めません。その代わりに、バックスラッシュでエスケープすることで、引用文字を文字列として渡すことができます。r-string "
1004
1012
"が意図された目的に使われるときに、この規則が役に立つのです。"
1005
1013
1006
- #: ../../faq/design.rst:635
1014
+ #: ../../faq/design.rst:643
1007
1015
msgid ""
1008
1016
"If you're trying to build Windows pathnames, note that all Windows system "
1009
1017
"calls accept forward slashes too::"
1010
1018
msgstr "Windows のパス名を構築するときには、Windows のシステムコールは普通のスラッシュも受け付けることを憶えておいてください::"
1011
1019
1012
- #: ../../faq/design.rst:640
1020
+ #: ../../faq/design.rst:648
1013
1021
msgid ""
1014
1022
"If you're trying to build a pathname for a DOS command, try e.g. one of ::"
1015
1023
msgstr "DOS コマンドのパス名を構築するときには、例えばこの中のどれかを試してください::"
1016
1024
1017
- #: ../../faq/design.rst:648
1025
+ #: ../../faq/design.rst:656
1018
1026
msgid "Why doesn't Python have a\" with\" statement for attribute assignments?"
1019
1027
msgstr "属性の代入に\" with\" 文が使えないのはなぜですか?"
1020
1028
1021
- #: ../../faq/design.rst:650
1029
+ #: ../../faq/design.rst:658
1022
1030
msgid ""
1023
1031
"Python has a 'with' statement that wraps the execution of a block, calling "
1024
1032
"code on the entrance and exit from the block. Some language have a "
@@ -1027,11 +1035,11 @@ msgstr ""
1027
1035
"Python には、ブロックの実行を包む 'with' "
1028
1036
"文があり、ブロックに入るときとブロックから出るときに、コードを呼び出します。以下のような構造を持つ言語があります::"
1029
1037
1030
- #: ../../faq/design.rst:658
1038
+ #: ../../faq/design.rst:666
1031
1039
msgid "In Python, such a construct would be ambiguous."
1032
1040
msgstr "Python では、このような構造は曖昧になるでしょう。"
1033
1041
1034
- #: ../../faq/design.rst:660
1042
+ #: ../../faq/design.rst:668
1035
1043
msgid ""
1036
1044
"Other languages, such as Object Pascal, Delphi, and C++, use static types, "
1037
1045
"so it's possible to know, in an unambiguous way, what member is being "
@@ -1042,7 +1050,7 @@ msgstr ""
1042
1050
"Pascal、Delphi、C++のような他の言語では、静的な型を使うので、曖昧な方法でも、どのメンバに代入されているのか分かります。これが静的型付けの要点です"
1043
1051
" -- コンパイラは *いつでも* コンパイル時にすべての変数のスコープを知るのです。"
1044
1052
1045
- #: ../../faq/design.rst:665
1053
+ #: ../../faq/design.rst:673
1046
1054
msgid ""
1047
1055
"Python uses dynamic types. It is impossible to know in advance which "
1048
1056
"attribute will be referenced at runtime. Member attributes may be added or "
@@ -1053,11 +1061,11 @@ msgstr ""
1053
1061
"Python "
1054
1062
"は動的な型を使います。実行時にどの属性が参照されるか事前に分かりません。動作中にメンバ属性が追加あるいは除去されるかもしれません。これでは、単純に読むだけではどのアトリビュートが参照されているか分かりません。ローカルなのか、グローバルなのか、メンバ属性なのか?"
1055
1063
1056
- #: ../../faq/design.rst:671
1064
+ #: ../../faq/design.rst:679
1057
1065
msgid "For instance, take the following incomplete snippet::"
1058
1066
msgstr "例えば、以下の不完全なコード片を考えましょう::"
1059
1067
1060
- #: ../../faq/design.rst:677
1068
+ #: ../../faq/design.rst:685
1061
1069
msgid ""
1062
1070
"The snippet assumes that\" a\" must have a member attribute called\" x\" . "
1063
1071
"However, there is nothing in Python that tells the interpreter this. What "
@@ -1070,47 +1078,47 @@ msgstr ""
1070
1078
"という名前のグローバル変数があったら、それが with ブロックの中で使われるのでしょうか。この通り、Python "
1071
1079
"の動的な特質から、このような選択はとても難しい物になっています。"
1072
1080
1073
- #: ../../faq/design.rst:683
1081
+ #: ../../faq/design.rst:691
1074
1082
msgid ""
1075
1083
"The primary benefit of\" with\" and similar language features (reduction of "
1076
1084
"code volume) can, however, easily be achieved in Python by assignment. "
1077
1085
"Instead of::"
1078
1086
msgstr "しかし、\" with\" やそれに類する言語の機能の一番の利点 (コード量の削減) は、 Python では代入により簡単に手に入れられます::"
1079
1087
1080
- #: ../../faq/design.rst:690
1088
+ #: ../../faq/design.rst:698
1081
1089
msgid "write this::"
1082
1090
msgstr "こう書いてください::"
1083
1091
1084
- #: ../../faq/design.rst:697
1092
+ #: ../../faq/design.rst:705
1085
1093
msgid ""
1086
1094
"This also has the side-effect of increasing execution speed because name "
1087
1095
"bindings are resolved at run-time in Python, and the second version only "
1088
1096
"needs to perform the resolution once."
1089
1097
msgstr "Python では実行時に名前束縛が解決され、後者はその解決が一度で済むため、これには実行速度をあげる副作用もあります。"
1090
1098
1091
- #: ../../faq/design.rst:703
1099
+ #: ../../faq/design.rst:711
1092
1100
msgid "Why are colons required for the if/while/def/class statements?"
1093
1101
msgstr "if/while/def/class 文にコロンが必要なのはなぜですか?"
1094
1102
1095
- #: ../../faq/design.rst:705
1103
+ #: ../../faq/design.rst:713
1096
1104
msgid ""
1097
1105
"The colon is required primarily to enhance readability (one of the results "
1098
1106
"of the experimental ABC language). Consider this::"
1099
1107
msgstr "主に可読性を高めるため (実験的な ABC 言語の結果の一つ) に、コロンが必要です::"
1100
1108
1101
- #: ../../faq/design.rst:711
1109
+ #: ../../faq/design.rst:719
1102
1110
msgid "versus ::"
1103
1111
msgstr "と::"
1104
1112
1105
- #: ../../faq/design.rst:716
1113
+ #: ../../faq/design.rst:724
1106
1114
msgid ""
1107
1115
"Notice how the second one is slightly easier to read. Notice further how a "
1108
1116
"colon sets off the example in this FAQ answer; it's a standard usage in "
1109
1117
"English."
1110
1118
msgstr ""
1111
1119
"を考えれば、後者のほうが少し読みやすいでしょう。さらに言えば、この FAQ の解答例は次のようになるでしょう。これは、英語の標準的な用法です。"
1112
1120
1113
- #: ../../faq/design.rst:719
1121
+ #: ../../faq/design.rst:727
1114
1122
msgid ""
1115
1123
"Another minor reason is that the colon makes it easier for editors with "
1116
1124
"syntax highlighting; they can look for colons to decide when indentation "
@@ -1119,21 +1127,21 @@ msgid ""
1119
1127
msgstr ""
1120
1128
"他の小さな理由は、コロンによってエディタがシンタックスハイライトをしやすくなることです。プログラムテキストの手の込んだ解析をしなくても、コロンを探せばいつインデントを増やすべきかを決められます。"
1121
1129
1122
- #: ../../faq/design.rst:725
1130
+ #: ../../faq/design.rst:733
1123
1131
msgid "Why does Python allow commas at the end of lists and tuples?"
1124
1132
msgstr "なぜ Python ではリストやタプルの最後にカンマがあっても良いのですか?"
1125
1133
1126
- #: ../../faq/design.rst:727
1134
+ #: ../../faq/design.rst:735
1127
1135
msgid ""
1128
1136
"Python lets you add a trailing comma at the end of lists, tuples, and "
1129
1137
"dictionaries::"
1130
1138
msgstr "Python では、リスト、タプル、辞書の最後の要素の後端にカンマをつけても良いことになっています::"
1131
1139
1132
- #: ../../faq/design.rst:738
1140
+ #: ../../faq/design.rst:746
1133
1141
msgid "There are several reasons to allow this."
1134
1142
msgstr "これを許すのには、いくつかの理由があります。"
1135
1143
1136
- #: ../../faq/design.rst:740
1144
+ #: ../../faq/design.rst:748
1137
1145
msgid ""
1138
1146
"When you have a literal value for a list, tuple, or dictionary spread across"
1139
1147
" multiple lines, it's easier to add more elements because you don't have to "
@@ -1142,13 +1150,13 @@ msgid ""
1142
1150
msgstr ""
1143
1151
"リストやタプルや辞書のリテラルが複数行に渡っているときに、前の行にカンマを追加するのを覚えておく必要が無いため、要素を追加するのが楽になります。また、文法エラーを起こすこと無く、行の並べ替えを行うことができます。"
1144
1152
1145
- #: ../../faq/design.rst:745
1153
+ #: ../../faq/design.rst:753
1146
1154
msgid ""
1147
1155
"Accidentally omitting the comma can lead to errors that are hard to "
1148
1156
"diagnose. For example::"
1149
1157
msgstr "間違えてカンマを落としてしまうと、診断しづらいエラーにつながります。例えば::"
1150
1158
1151
- #: ../../faq/design.rst:755
1159
+ #: ../../faq/design.rst:763
1152
1160
msgid ""
1153
1161
"This list looks like it has four elements, but it actually contains three: "
1154
1162
"\" fee\" ,\" fiefoo\" and\" fum\" . Always adding the comma avoids this source"
@@ -1158,7 +1166,7 @@ msgstr ""
1158
1166
"\" fee\" 、\" fiefoo\" 、\" fum\" です。\n"
1159
1167
"常にカンマを付けるようにすれば、この種のエラーが避けられます。"
1160
1168
1161
- #: ../../faq/design.rst:758
1169
+ #: ../../faq/design.rst:766
1162
1170
msgid ""
1163
1171
"Allowing the trailing comma may also make programmatic code generation "
1164
1172
"easier."