Skip to content

Commit 9ced021

Browse files
[po] auto sync
1 parent 15db1ce commit 9ced021

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "82.99%", "updated_at": "2025-04-16T06:19:24Z"}
1+
{"translation": "82.99%", "updated_at": "2025-04-17T08:19:13Z"}

whatsnew/3.4.po

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3874,6 +3874,9 @@ msgid ""
38743874
"compatibility, catch both :exc:`NotImplementedError` or the appropriate "
38753875
"exception as needed."
38763876
msgstr ""
3877+
"在 :mod:`importlib.abc` 中定义的 ABC 现在将会引发适当的异常或是返回默认值而不是无脑引发 "
3878+
":exc:`NotImplementedError`。 这将只影响调用 :func:`super` 并一路下落到这些 ABC 的代码。 "
3879+
"为保持兼容性,:exc:`NotImplementedError` 和所需的相应异常都要被捕获。"
38773880

38783881
#: ../../whatsnew/3.4.rst:2275
38793882
msgid ""
@@ -3898,6 +3901,9 @@ msgid ""
38983901
"reloading. Note that this restores a pre-3.3 behavior in that it means a "
38993902
"module is re-found when re-loaded (:issue:`19413`)."
39003903
msgstr ""
3904+
"当重载时 import 操作现在会无条件地重置相关属性 (例如 ``__name__``, ``__loader__``, "
3905+
"``__package__``, ``__file__``, ``__cached__``)。 请注意在模块重载时会被重发现这一点上该操作恢复了 3.3"
3906+
" 之前的行为 (:issue:`19413`)。"
39013907

39023908
#: ../../whatsnew/3.4.rst:2290
39033909
msgid ""
@@ -4213,6 +4219,11 @@ msgid ""
42134219
"when invoking these operations (directly or indirectly) and running against "
42144220
"a version of Python that is compiled with assertions enabled."
42154221
msgstr ""
4222+
"现在 :c:func:`PyEval_EvalFrameEx`, :c:func:`PyObject_Repr` 和 "
4223+
":c:func:`PyObject_Str` 以及其他一些内部 C API "
4224+
"都包括了一个调试断言,以确保它们不会在可能会静默地丢弃当前活动异常的情况下使用。 在预期并且希望丢弃活动异常的情况下(例如,由于已通过 "
4225+
":c:func:`PyErr_Fetch` 将其保存在本地或是有意将其替换为不同的异常 ),则需调用显式的 :c:func:`PyErr_Clear` "
4226+
"以避免在(直接或间接)唤起这些操作和针对启用断言编译的 Python 的版本运行时触发断言。"
42164227

42174228
#: ../../whatsnew/3.4.rst:2500
42184229
msgid ""

0 commit comments

Comments
 (0)