@@ -3874,6 +3874,9 @@ msgid ""
3874
3874
"compatibility, catch both :exc:`NotImplementedError` or the appropriate "
3875
3875
"exception as needed."
3876
3876
msgstr ""
3877
+ "在 :mod:`importlib.abc` 中定义的 ABC 现在将会引发适当的异常或是返回默认值而不是无脑引发 "
3878
+ ":exc:`NotImplementedError`。 这将只影响调用 :func:`super` 并一路下落到这些 ABC 的代码。 "
3879
+ "为保持兼容性,:exc:`NotImplementedError` 和所需的相应异常都要被捕获。"
3877
3880
3878
3881
#: ../../whatsnew/3.4.rst:2275
3879
3882
msgid ""
@@ -3898,6 +3901,9 @@ msgid ""
3898
3901
"reloading. Note that this restores a pre-3.3 behavior in that it means a "
3899
3902
"module is re-found when re-loaded (:issue:`19413`)."
3900
3903
msgstr ""
3904
+ "当重载时 import 操作现在会无条件地重置相关属性 (例如 ``__name__``, ``__loader__``, "
3905
+ "``__package__``, ``__file__``, ``__cached__``)。 请注意在模块重载时会被重发现这一点上该操作恢复了 3.3"
3906
+ " 之前的行为 (:issue:`19413`)。"
3901
3907
3902
3908
#: ../../whatsnew/3.4.rst:2290
3903
3909
msgid ""
@@ -4213,6 +4219,11 @@ msgid ""
4213
4219
"when invoking these operations (directly or indirectly) and running against "
4214
4220
"a version of Python that is compiled with assertions enabled."
4215
4221
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 的版本运行时触发断言。"
4216
4227
4217
4228
#: ../../whatsnew/3.4.rst:2500
4218
4229
msgid ""