File tree 2 files changed +7
-1
lines changed
Filter options
2 files changed +7
-1
lines changed
Original file line number Diff line number Diff line change 1
- {"translation" : " 83.11 %" , "updated_at" : " 2025-04-27T07 :17:54Z " }
1
+ {"translation" : " 83.12 %" , "updated_at" : " 2025-04-27T14 :17:50Z " }
Original file line number Diff line number Diff line change @@ -1136,6 +1136,9 @@ msgid ""
1136
1136
" except for this latter category is to use :keyword:`except` "
1137
1137
":exc:`Exception`."
1138
1138
msgstr ""
1139
+ "几乎所有异常实际上都应当派生自 :exc:`Exception`;:exc:`BaseException` "
1140
+ "仅应当被用作那些仅应当在最高层级中处理的异常的基类,如 :exc:`SystemExit` 或 :exc:`KeyboardInterrupt`。 "
1141
+ "处理除了后面这一类之外的所有异常的推荐写法是使用 :keyword:`except` :exc:`Exception`。"
1139
1142
1140
1143
#: ../../whatsnew/3.0.rst:705
1141
1144
msgid ":exc:`StandardError` was removed."
@@ -1163,6 +1166,9 @@ msgid ""
1163
1166
"{variable}`. Moreover, the *variable* is explicitly deleted when the "
1164
1167
":keyword:`except` block is left."
1165
1168
msgstr ""
1169
+ ":pep:`3110`: 捕获异常。 你现在必须使用 :samp:`except {SomeException} as {variable}` 而不是 "
1170
+ ":samp:`except {SomeException}, {variable}`。 此外,*variable* 会在离开 "
1171
+ ":keyword:`except` 代码块时被显式地删除。"
1166
1172
1167
1173
#: ../../whatsnew/3.0.rst:722
1168
1174
msgid ""
You can’t perform that action at this time.
0 commit comments