@@ -3858,6 +3858,9 @@ msgid ""
38583858" generator (``repr(gen)``). (Contributed by Victor Stinner in "
38593859":issue:`21205`.)"
38603860msgstr ""
3861+ "现在生成器的 ``__name__`` 属性是根据函数名设置的,而不是根据代码名设置的。 请使用 ``gen.gi_code.co_name`` "
3862+ "来获取代码名。 生成器还有一个新的 ``__qualname__`` 属性,即限定名称,它现在用于生成器的表示形式 (``repr(gen)``)。 "
3863+ "(由 Victor Stinner 在 :issue:`21205` 中贡献。)"
38613864
38623865#: ../../whatsnew/3.5.rst:2420
38633866msgid ""
@@ -3868,6 +3871,10 @@ msgid ""
38683871":class:`~html.parser.HTMLParser` is now ``True`` by default. (Contributed "
38693872"by Berker Peksag in :issue:`21047`.)"
38703873msgstr ""
3874+ "已弃用的 \" strict\" 模式和 :class:`~html.parser.HTMLParser`, "
3875+ ":meth:`!HTMLParser.error` 和 :exc:`!HTMLParserError` 异常参数已被移除。 (由 Ezio "
3876+ "Melotti 在 :issue:`15114` 中贡献。) 现在 :class:`~html.parser.HTMLParser` 的 "
3877+ "*convert_charrefs* 参数默认为 ``True``。 (由 Berker Peksag 在 :issue:`21047` 中贡献。)"
38713878
38723879#: ../../whatsnew/3.5.rst:2426
38733880msgid ""
@@ -3877,6 +3884,9 @@ msgid ""
38773884" \" a :term:`bytes-like object` is required, not 'sometype'\" . (Contributed "
38783885"by Ezio Melotti in :issue:`16518`.)"
38793886msgstr ""
3887+ "虽然不是 API 的正式组成部分,但对于移植目的(例如:修复测试)来说需要注意之前 \" 'sometype' does not support the "
3888+ "buffer protocol\" 形式的错误消息现在将为 \" a :term:`bytes-like object` is required, not"
3889+ " 'sometype'\" 形式。 (由 Ezio Melotti 在 :issue:`16518` 中贡献。)"
38803890
38813891#: ../../whatsnew/3.5.rst:2432
38823892msgid ""
@@ -3886,6 +3896,9 @@ msgid ""
38863896"**without** caching ``None`` in :data:`sys.path_importer_cache`, which is "
38873897"different than the typical case (:issue:`22834`)."
38883898msgstr ""
3899+ "在当前目录被设为已不存在的目录时将不再引发 :exc:`FileNotFoundError` 而是改为 "
3900+ ":meth:`~importlib.machinery.FileFinder.find_spec` 返回 ``None`` 并且 **不在** "
3901+ ":data:`sys.path_importer_cache` 中缓存 ``None``,这与典型的场景存在区别 (:issue:`22834`)。"
38893902
38903903#: ../../whatsnew/3.5.rst:2438
38913904msgid ""
@@ -3894,6 +3907,9 @@ msgid ""
38943907"in :mod:`http.client` and :mod:`http.server` remain available for backwards "
38953908"compatibility. (Contributed by Demian Brecht in :issue:`21793`.)"
38963909msgstr ""
3910+ ":mod:`http.client` 和 :mod:`http.server` 中的 HTTP 状态码和消息被重构为一个通用的 "
3911+ ":class:`~http.HTTPStatus` 枚举。 :mod:`http.client` 和 :mod:`http.server` "
3912+ "中的值仍可被用于向下兼容性。 (由 Demian Brecht 在 :issue:`21793` 中贡献。)"
38973913
38983914#: ../../whatsnew/3.5.rst:2443
38993915msgid ""
0 commit comments