@@ -19,7 +19,7 @@ msgid ""
19
19
msgstr ""
20
20
"Project-Id-Version: Python 3.9\n"
21
21
"Report-Msgid-Bugs-To: \n"
22
- "POT-Creation-Date: 2020-11-05 04:32 +0000\n"
22
+ "POT-Creation-Date: 2020-11-06 04:33 +0000\n"
23
23
"PO-Revision-Date: 2020-11-03 04:34+0000\n"
24
24
"Last-Translator: tomo, 2020\n"
25
25
"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n"
@@ -5514,7 +5514,7 @@ msgstr ""
5514
5514
#: ../../library/textwrap.rst:104 ../../library/threading.rst:926
5515
5515
#: ../../library/tkinter.rst:281 ../../library/tkinter.rst:542
5516
5516
#: ../../library/tkinter.rst:721 ../../library/typing.rst:157
5517
- #: ../../library/winsound.rst:77 ../../tutorial/errors.rst:419
5517
+ #: ../../library/winsound.rst:77 ../../tutorial/errors.rst:420
5518
5518
msgid "For example::"
5519
5519
msgstr "例えば::"
5520
5520
@@ -278091,29 +278091,30 @@ msgstr "例外の連鎖"
278091
278091
#: ../../tutorial/errors.rst:275
278092
278092
msgid ""
278093
278093
"The :keyword:`raise` statement allows an optional :keyword:`from` which "
278094
- "enables chaining exceptions by setting the ``__cause__`` attribute of the "
278095
- "raised exception. For example::"
278094
+ "enables chaining exceptions. For example::"
278096
278095
msgstr ""
278097
- ":keyword:`raise` 文ではオプションの :keyword:`from` が使え、送出された例外の ``__cause__`` "
278098
- "属性に連鎖している例外を設定できます。例えば::"
278099
278096
278100
278097
#: ../../tutorial/errors.rst:281
278101
278098
msgid "This can be useful when you are transforming exceptions. For example::"
278102
278099
msgstr ""
278103
278100
278104
278101
#: ../../tutorial/errors.rst:302
278105
278102
msgid ""
278106
- "The expression following the :keyword:`from` must be either an exception or "
278107
- "``None``. Exception chaining happens automatically when an exception is "
278108
- "raised inside an exception handler or :keyword:`finally` section. Exception "
278109
- "chaining can be disabled by using ``from None`` idiom:"
278103
+ "Exception chaining happens automatically when an exception is raised inside "
278104
+ "an :keyword:`except` or :keyword:`finally` section. Exception chaining can "
278105
+ "be disabled by using ``from None`` idiom:"
278110
278106
msgstr ""
278111
278107
278112
- #: ../../tutorial/errors.rst:320
278108
+ #: ../../tutorial/errors.rst:315
278109
+ msgid ""
278110
+ "For more information about chaining mechanics, see :ref:`bltin-exceptions`."
278111
+ msgstr ""
278112
+
278113
+ #: ../../tutorial/errors.rst:321
278113
278114
msgid "User-defined Exceptions"
278114
278115
msgstr "ユーザー定義例外"
278115
278116
278116
- #: ../../tutorial/errors.rst:322
278117
+ #: ../../tutorial/errors.rst:323
278117
278118
msgid ""
278118
278119
"Programs may name their own exceptions by creating a new exception class "
278119
278120
"(see :ref:`tut-classes` for more about Python classes). Exceptions should "
@@ -278123,7 +278124,7 @@ msgstr ""
278123
278124
"プログラム上で新しい例外クラスを作成することで、独自の例外を指定することができます (Python のクラスについては :ref:`tut-"
278124
278125
"classes` 参照)。例外は、典型的に :exc:`Exception` クラスから、直接または間接的に派生したものです。"
278125
278126
278126
- #: ../../tutorial/errors.rst:326
278127
+ #: ../../tutorial/errors.rst:327
278127
278128
msgid ""
278128
278129
"Exception classes can be defined which do anything any other class can do, "
278129
278130
"but are usually kept simple, often only offering a number of attributes that"
@@ -278135,13 +278136,13 @@ msgid ""
278135
278136
msgstr ""
278136
278137
"例外クラスでは、普通のクラスができることなら何でも定義することができますが、通常は単純なものにしておきます。大抵は、いくつかの属性だけを提供し、例外が発生したときにハンドラがエラーに関する情報を取り出せるようにする程度にとどめます。複数の別個の例外を送出するようなモジュールを作成する際には、そのモジュールで定義されている例外の基底クラスを作成するのが一般的なプラクティスです::"
278137
278138
278138
- #: ../../tutorial/errors.rst:364
278139
+ #: ../../tutorial/errors.rst:365
278139
278140
msgid ""
278140
278141
"Most exceptions are defined with names that end in \"Error\", similar to the"
278141
278142
" naming of the standard exceptions."
278142
278143
msgstr "ほとんどの例外は、標準の例外の名前付けと同様に、\"Error\" で終わる名前で定義されています。"
278143
278144
278144
- #: ../../tutorial/errors.rst:367
278145
+ #: ../../tutorial/errors.rst:368
278145
278146
msgid ""
278146
278147
"Many standard modules define their own exceptions to report errors that may "
278147
278148
"occur in functions they define. More information on classes is presented in"
@@ -278150,11 +278151,11 @@ msgstr ""
278150
278151
"多くの標準モジュールでは、モジュールで定義されている関数内で発生する可能性のあるエラーを報告させるために、独自の例外を定義しています。クラスについての詳細な情報は"
278151
278152
" :ref:`tut-classes` 章で提供されています。"
278152
278153
278153
- #: ../../tutorial/errors.rst:375
278154
+ #: ../../tutorial/errors.rst:376
278154
278155
msgid "Defining Clean-up Actions"
278155
278156
msgstr "クリーンアップ動作を定義する"
278156
278157
278157
- #: ../../tutorial/errors.rst:377
278158
+ #: ../../tutorial/errors.rst:378
278158
278159
msgid ""
278159
278160
"The :keyword:`try` statement has another optional clause which is intended "
278160
278161
"to define clean-up actions that must be executed under all circumstances. "
@@ -278163,7 +278164,7 @@ msgstr ""
278163
278164
":keyword:`try` "
278164
278165
"文にはもう一つオプションの節があります。この節はクリーンアップ動作を定義するためのもので、どんな状況でも必ず実行されます。例を示します::"
278165
278166
278166
- #: ../../tutorial/errors.rst:391
278167
+ #: ../../tutorial/errors.rst:392
278167
278168
msgid ""
278168
278169
"If a :keyword:`finally` clause is present, the :keyword:`!finally` clause "
278169
278170
"will execute as the last task before the :keyword:`try` statement completes."
@@ -278175,7 +278176,7 @@ msgstr ""
278175
278176
":keyword:`!finally` 節が実行します。 :keyword:`!try` 文が例外を発生させるか否かに関わらず、 "
278176
278177
":keyword:`!finally` 節は実行されます。以下では、例外が発生するという更に複雑なケースを議論します:"
278177
278178
278178
- #: ../../tutorial/errors.rst:397
278179
+ #: ../../tutorial/errors.rst:398
278179
278180
msgid ""
278180
278181
"If an exception occurs during execution of the :keyword:`!try` clause, the "
278181
278182
"exception may be handled by an :keyword:`except` clause. If the exception is"
@@ -278186,7 +278187,7 @@ msgstr ""
278186
278187
"節によって処理されるでしょう。もしその例外が :keyword:`!except` 節によって処理されなければ、 :keyword:`!finally`"
278187
278188
" 節が実行された後に、その例外が再送出されます。"
278188
278189
278189
- #: ../../tutorial/errors.rst:403
278190
+ #: ../../tutorial/errors.rst:404
278190
278191
msgid ""
278191
278192
"An exception could occur during execution of an :keyword:`!except` or "
278192
278193
":keyword:`!else` clause. Again, the exception is re-raised after the "
@@ -278195,7 +278196,7 @@ msgstr ""
278195
278196
":keyword:`!except` 節または :keyword:`!else` 節の実行中に例外が発生することがあり得ます。その場合も、 "
278196
278197
":keyword:`!finally` 節が実行された後に例外が再送出されます。"
278197
278198
278198
- #: ../../tutorial/errors.rst:407
278199
+ #: ../../tutorial/errors.rst:408
278199
278200
msgid ""
278200
278201
"If the :keyword:`!try` statement reaches a :keyword:`break`, "
278201
278202
":keyword:`continue` or :keyword:`return` statement, the :keyword:`!finally` "
@@ -278206,7 +278207,7 @@ msgstr ""
278206
278207
":keyword:`return` 文のいずれかに達すると、その:keyword:`!break` 文、 :keyword:`!continue` "
278207
278208
"文または :keyword:`!return` 文の実行の直前に :keyword:`!finally` 節が実行されます。"
278208
278209
278209
- #: ../../tutorial/errors.rst:413
278210
+ #: ../../tutorial/errors.rst:414
278210
278211
msgid ""
278211
278212
"If a :keyword:`!finally` clause includes a :keyword:`!return` statement, the"
278212
278213
" returned value will be the one from the :keyword:`!finally` clause's "
@@ -278217,11 +278218,11 @@ msgstr ""
278217
278218
"節の :keyword:`!return` 文ではなく、:keyword:`!finally` 節の :keyword:`!return` "
278218
278219
"文によるものになります。"
278219
278220
278220
- #: ../../tutorial/errors.rst:430
278221
+ #: ../../tutorial/errors.rst:431
278221
278222
msgid "A more complicated example::"
278222
278223
msgstr "より複雑な例::"
278223
278224
278224
- #: ../../tutorial/errors.rst:455
278225
+ #: ../../tutorial/errors.rst:456
278225
278226
msgid ""
278226
278227
"As you can see, the :keyword:`finally` clause is executed in any event. The"
278227
278228
" :exc:`TypeError` raised by dividing two strings is not handled by the "
@@ -278231,7 +278232,7 @@ msgstr ""
278231
278232
"見てわかるとおり、 :keyword:`finally` 節はどの場合にも実行されています。\n"
278232
278233
"文字列で割り算をすることで発生した :exc:`TypeError` は :keyword:`except` 節で処理されていないので、 :keyword:`!finally` 節実行後に再度送出されています。"
278233
278234
278234
- #: ../../tutorial/errors.rst:460
278235
+ #: ../../tutorial/errors.rst:461
278235
278236
msgid ""
278236
278237
"In real world applications, the :keyword:`finally` clause is useful for "
278237
278238
"releasing external resources (such as files or network connections), "
@@ -278240,11 +278241,11 @@ msgstr ""
278240
278241
"実世界のアプリケーションでは、 :keyword:`finally` "
278241
278242
"節は(ファイルやネットワーク接続などの)外部リソースを、利用が成功したかどうかにかかわらず解放するために便利です。"
278242
278243
278243
- #: ../../tutorial/errors.rst:468
278244
+ #: ../../tutorial/errors.rst:469
278244
278245
msgid "Predefined Clean-up Actions"
278245
278246
msgstr "定義済みクリーンアップ処理"
278246
278247
278247
- #: ../../tutorial/errors.rst:470
278248
+ #: ../../tutorial/errors.rst:471
278248
278249
msgid ""
278249
278250
"Some objects define standard clean-up actions to be undertaken when the "
278250
278251
"object is no longer needed, regardless of whether or not the operation using"
@@ -278254,7 +278255,7 @@ msgstr ""
278254
278255
"オブジェクトのなかには、その利用の成否にかかわらず、不要になった際に実行される標準的なクリーンアップ処理が定義されているものがあります。以下の、ファイルをオープンして内容を画面に表示する例をみてください。"
278255
278256
" ::"
278256
278257
278257
- #: ../../tutorial/errors.rst:478
278258
+ #: ../../tutorial/errors.rst:479
278258
278259
msgid ""
278259
278260
"The problem with this code is that it leaves the file open for an "
278260
278261
"indeterminate amount of time after this part of the code has finished "
@@ -278266,7 +278267,7 @@ msgstr ""
278266
278267
"このコードの問題点は、コードの実行が終わった後に不定の時間ファイルを開いたままでいることです。これは単純なスクリプトでは問題になりませんが、大きなアプリケーションでは問題になりえます。"
278267
278268
" :keyword:`with` 文はファイルのようなオブジェクトが常に、即座に正しくクリーンアップされることを保証します。 ::"
278268
278269
278269
- #: ../../tutorial/errors.rst:488
278270
+ #: ../../tutorial/errors.rst:489
278270
278271
msgid ""
278271
278272
"After the statement is executed, the file *f* is always closed, even if a "
278272
278273
"problem was encountered while processing the lines. Objects which, like "
0 commit comments