@@ -3815,6 +3815,9 @@ msgid ""
3815
3815
" generator (``repr(gen)``). (Contributed by Victor Stinner in "
3816
3816
":issue:`21205`.)"
3817
3817
msgstr ""
3818
+ "现在生成器的 ``__name__`` 属性是根据函数名设置的,而不是根据代码名设置的。 请使用 ``gen.gi_code.co_name`` "
3819
+ "来获取代码名。 生成器还有一个新的 ``__qualname__`` 属性,即限定名称,它现在用于生成器的表示形式 (``repr(gen)``)。 "
3820
+ "(由 Victor Stinner 在 :issue:`21205` 中贡献。)"
3818
3821
3819
3822
#: ../../whatsnew/3.5.rst:2419
3820
3823
msgid ""
@@ -3834,6 +3837,9 @@ msgid ""
3834
D543
3837
" \" a :term:`bytes-like object` is required, not 'sometype'\" . (Contributed "
3835
3838
"by Ezio Melotti in :issue:`16518`.)"
3836
3839
msgstr ""
3840
+ "虽然不是 API 的正式组成部分,但对于移植目的(例如:修复测试)来说需要注意之前 \" 'sometype' does not support the "
3841
+ "buffer protocol\" 形式的错误消息现在将为 \" a :term:`bytes-like object` is required, not"
3842
+ " 'sometype'\" 形式。 (由 Ezio Melotti 在 :issue:`16518` 中贡献。)"
3837
3843
3838
3844
#: ../../whatsnew/3.5.rst:2431
3839
3845
msgid ""
@@ -3843,6 +3849,9 @@ msgid ""
3843
3849
"**without** caching ``None`` in :data:`sys.path_importer_cache`, which is "
3844
3850
"different than the typical case (:issue:`22834`)."
3845
3851
msgstr ""
3852
+ "在当前目录被设为已不存在的目录时将不再引发 :exc:`FileNotFoundError` 而是改为 "
3853
+ ":meth:`~importlib.machinery.FileFinder.find_spec` 返回 ``None`` 并且 **不在** "
3854
+ ":data:`sys.path_importer_cache` 中缓存 ``None``,这与典型的场景存在区别 (:issue:`22834`)。"
3846
3855
3847
3856
#: ../../whatsnew/3.5.rst:2437
3848
3857
msgid ""
@@ -3851,6 +3860,9 @@ msgid ""
3851
3860
"in :mod:`http.client` and :mod:`http.server` remain available for backwards "
3852
3861
"compatibility. (Contributed by Demian Brecht in :issue:`21793`.)"
3853
3862
msgstr ""
3863
+ ":mod:`http.client` 和 :mod:`http.server` 中的 HTTP 状态码和消息被重构为一个通用的 "
3864
+ ":class:`~http.HTTPStatus` 枚举。 :mod:`http.client` 和 :mod:`http.server` "
3865
+ "中的值仍可被用于向下兼容性。 (由 Demian Brecht 在 :issue:`21793` 中贡献。)"
3854
3866
3855
3867
#: ../../whatsnew/3.5.rst:2442
3856
3868
msgid ""
0 commit comments