8000 [po] auto sync · python/python-docs-zh-cn@5f7c98c · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f7c98c

Browse files
[po] auto sync
1 parent 127d00f commit 5f7c98c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.stat.json

Lines 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

Lines 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