Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5f7c98c

Browse filesBrowse files
[po] auto sync
1 parent 127d00f commit 5f7c98c
Copy full SHA for 5f7c98c

File tree

2 files changed

+7
-1
lines changed
Filter options

2 files changed

+7
-1
lines changed

‎.stat.json

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "83.11%", "updated_at": "2025-04-27T07:17:54Z"}
1+
{"translation": "83.12%", "updated_at": "2025-04-27T14:17:50Z"}

‎whatsnew/3.0.po

Copy file name to clipboardExpand all lines: whatsnew/3.0.po
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,6 +1136,9 @@ msgid ""
11361136
" except for this latter category is to use :keyword:`except` "
11371137
":exc:`Exception`."
11381138
msgstr ""
1139+
"几乎所有异常实际上都应当派生自 :exc:`Exception`;:exc:`BaseException` "
1140+
"仅应当被用作那些仅应当在最高层级中处理的异常的基类,如 :exc:`SystemExit` 或 :exc:`KeyboardInterrupt`。 "
1141+
"处理除了后面这一类之外的所有异常的推荐写法是使用 :keyword:`except` :exc:`Exception`。"
11391142

11401143
#: ../../whatsnew/3.0.rst:705
11411144
msgid ":exc:`StandardError` was removed."
@@ -1163,6 +1166,9 @@ msgid ""
11631166
"{variable}`. Moreover, the *variable* is explicitly deleted when the "
11641167
":keyword:`except` block is left."
11651168
msgstr ""
1169+
":pep:`3110`: 捕获异常。 你现在必须使用 :samp:`except {SomeException} as {variable}` 而不是 "
1170+
":samp:`except {SomeException}, {variable}`。 此外,*variable* 会在离开 "
1171+
":keyword:`except` 代码块时被显式地删除。"
11661172

11671173
#: ../../whatsnew/3.0.rst:722
11681174
msgid ""

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.