@@ -20,7 +20,7 @@ msgid ""
20
20
msgstr ""
21
21
"Project-Id-Version : Python 3.9\n "
22
22
"Report-Msgid-Bugs-To : \n "
23
- "POT-Creation-Date : 2021-03-16 05:43 +0000\n "
23
+ "POT-Creation-Date : 2021-06-22 06:42 +0000\n "
24
24
"PO-Revision-Date : 2017-02-16 17:42+0000\n "
25
25
"Last-Translator : Mikami Akiko, 2021\n "
26
26
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -1108,28 +1108,40 @@ msgid ""
1108
1108
msgstr "Python では実行時に名前束縛が解決され、後者はその解決が一度で済むため、これには実行速度をあげる副作用もあります。"
1109
1109
1110
1110
#: ../../faq/design.rst:713
1111
+ msgid "Why don't generators support the with statement?"
1112
+ msgstr ""
1113
+
1114
+ #: ../../faq/design.rst:715
1115
+ msgid ""
1116
+ "For technical reasons, a generator used directly as a context manager would "
1117
+ "not work correctly. When, as is most common, a generator is used as an "
1118
+ "iterator run to completion, no closing is needed. When it is, wrap it as "
1119
+ "\" contextlib.closing(generator)\" in the 'with' statment."
1120
+ msgstr ""
1121
+
1122
+ #: ../../faq/design.rst:722
1111
1123
msgid "Why are colons required for the if/while/def/class statements?"
1112
1124
msgstr "if/while/def/class 文にコロンが必要なのはなぜですか?"
1113
1125
1114
- #: ../../faq/design.rst:715
1126
+ #: ../../faq/design.rst:724
1115
1127
msgid ""
1116
1128
"The colon is required primarily to enhance readability (one of the results "
1117
1129
"of the experimental ABC language). Consider this::"
1118
1130
msgstr "主に可読性を高めるため (実験的な ABC 言語の結果の一つ) に、コロンが必要です::"
1119
1131
1120
- #: ../../faq/design.rst:721
1132
+ #: ../../faq/design.rst:730
1121
1133
msgid "versus ::"
1122
1134
msgstr "と::"
1123
1135
1124
- #: ../../faq/design.rst:726
1136
+ #: ../../faq/design.rst:735
1125
1137
msgid ""
1126
1138
"Notice how the second one is slightly easier to read. Notice further how a "
1127
1139
"colon sets off the example in this FAQ answer; it's a standard usage in "
1128
1140
"English."
1129
1141
msgstr ""
1130
1142
"を考えれば、後者のほうが少し読みやすいでしょう。さらに言えば、この FAQ の解答例は次のようになるでしょう。これは、英語の標準的な用法です。"
1131
1143
1132
- #: ../../faq/design.rst:729
1144
+ #: ../../faq/design.rst:738
1133
1145
msgid ""
1134
1146
"Another minor reason is that the colon makes it easier for editors with "
1135
1147
"syntax highlighting; they can look for colons to decide when indentation "
@@ -1138,21 +1150,21 @@ msgid ""
1138
1150
msgstr ""
1139
1151
"他の小さな理由は、コロンによってエディタがシンタックスハイライトをしやすくなることです。プログラムテキストの手の込んだ解析をしなくても、コロンを探せばいつインデントを増やすべきかを決められます。"
1140
1152
1141
- #: ../../faq/design.rst:735
1153
+ #: ../../faq/design.rst:744
1142
1154
msgid "Why does Python allow commas at the end of lists and tuples?"
1143
1155
msgstr "なぜ Python ではリストやタプルの最後にカンマがあっても良いのですか?"
1144
1156
1145
- #: ../../faq/design.rst:737
1157
+ #: ../../faq/design.rst:746
1146
1158
msgid ""
1147
1159
"Python lets you add a trailing comma at the end of lists, tuples, and "
1148
1160
"dictionaries::"
1149
1161
msgstr "Python では、リスト、タプル、辞書の最後の要素の後端にカンマをつけても良いことになっています::"
1150
1162
1151
- #: ../../faq/design.rst:748
1163
+ #: ../../faq/design.rst:757
1152
1164
msgid "There are several reasons to allow this."
1153
1165
msgstr "これを許すのには、いくつかの理由があります。"
1154
1166
1155
- #: ../../faq/design.rst:750
1167
+ #: ../../faq/design.rst:759
1156
1168
msgid ""
1157
1169
"When you have a literal value for a list, tuple, or dictionary spread across"
1158
1170
" multiple lines, it's easier to add more elements because you don't have to "
@@ -1161,13 +1173,13 @@ msgid ""
1161
1173
msgstr ""
1162
1174
"リストやタプルや辞書のリテラルが複数行に渡っているときに、前の行にカンマを追加するのを覚えておく必要が無いため、要素を追加するのが楽になります。また、文法エラーを起こすこと無く、行の並べ替えを行うことができます。"
1163
1175
1164
- #: ../../faq/design.rst:755
1176
+ #: ../../faq/design.rst:764
1165
1177
msgid ""
1166
1178
"Accidentally omitting the comma can lead to errors that are hard to "
1167
1179
"diagnose. For example::"
1168
1180
msgstr "間違えてカンマを落としてしまうと、診断しづらいエラーにつながります。例えば::"
1169
1181
1170
- #: ../../faq/design.rst:765
1182
+ #: ../../faq/design.rst:774
1171
1183
msgid ""
1172
1184
"This list looks like it has four elements, but it actually contains three: "
1173
1185
"\" fee\" , \" fiefoo\" and \" fum\" . Always adding the comma avoids this source"
@@ -1177,7 +1189,7 @@ msgstr ""
1177
1189
"\" fee\" 、\" fiefoo\" 、\" fum\" です。\n"
1178
1190
"常にカンマを付けるようにすれば、この種のエラーが避けられます。"
1179
1191
1180
- #: ../../faq/design.rst:768
1192
+ #: ../../faq/design.rst:777
1181
1193
msgid ""
1182
1194
"Allowing the trailing comma may also make programmatic code generation "
1183
1195
"easier."
0 commit comments