@@ -2955,6 +2955,8 @@ msgid ""
2955
2955
"New :class:`~weakref.WeakMethod` class simulates weak references to bound "
2956
2956
"methods. (Contributed by Antoine Pitrou in :issue:`14631`.)"
2957
2957
msgstr ""
2958
+ "新增的 :class:`~weakref.WeakMethod` 类可模拟指向绑定方法的弱引用。 (由 Antoine Pitrou 在 "
2959
+ ":issue:`14631` 中贡献。)"
2958
2960
2959
2961
#: ../../whatsnew/3.4.rst:1754
2960
2962
msgid ""
@@ -2963,13 +2965,18 @@ msgid ""
2963
2965
"to carefully manage the lifecycle of the weak reference itself. "
2964
2966
"(Contributed by Richard Oudkerk in :issue:`15528`.)"
2965
2967
msgstr ""
2968
+ "新增的 :class:`~weakref.finalize` "
2969
+ "类使得注册一个当对象被作为垃圾回收时发起调用的回调成为可能,而无需小心地管理弱引用本身的生命周期。 (由 Richard Oudkerk 在 "
2970
+ ":issue:`15528` 中贡献。)"
2966
2971
2967
2972
#: ../../whatsnew/3.4.rst:1759
2968
2973
msgid ""
2969
2974
"The callback, if any, associated with a :class:`~weakref.ref` is now exposed"
2970
2975
" via the :attr:`~weakref.ref.__callback__` attribute. (Contributed by Mark "
2971
2976
"Dickinson in :issue:`17643`.)"
2972
2977
msgstr ""
2978
+ "如果存在任何与 :class:`~weakref.ref` 相关联的回调,现在将通过 :attr:`~weakref.ref.__callback__`"
2979
+ " 属性对外公开。 (由 Mark Dickinson 在 :issue:`17643` 中贡献。)"
2973
2980
2974
2981
#: ../../whatsnew/3.4.rst:1765
2975
2982
msgid "xml.etree"
@@ -2982,6 +2989,9 @@ msgid ""
2982
2989
":ref:`elementtree-pull-parsing`. (Contributed by Antoine Pitrou in "
2983
2990
":issue:`17741`.)"
2984
2991
msgstr ""
2992
+ "新增的解析器 :class:`~xml.etree.ElementTree.XMLPullParser` 允许用非阻塞的应用程序来解析 XML 文档。 "
2993
+ "相关示例可参见 :ref:`elementtree-pull-parsing`。 (由 Antoine Pitrou 在 :issue:`17741` "
2994
+ "中贡献。)"
2985
2995
2986
2996
#: ../../whatsnew/3.4.rst:1772
2987
2997
msgid ""
@@ -2994,6 +3004,13 @@ msgid ""
2994
3004
" written in abbreviated (``<tag />``) or expanded (``<tag></tag>``) form. "
2995
3005
"(Contributed by Ariel Poliak and Serhiy Storchaka in :issue:`14377`.)"
2996
3006
msgstr ""
3007
+ "现在 :mod:`xml.etree.ElementTree` :func:`~xml.etree.ElementTree.tostring` 和 "
3008
+ ":func:`~xml.etree.ElementTree.tostringlist` 函数,以及 "
3009
+ ":class:`~xml.etree.ElementTree.ElementTree` 的 "
3010
+ ":meth:`~xml.etree.ElementTree.ElementTree.write` 方法都具有一个 "
3011
+ "*short_empty_elements* :ref:`仅限关键字形参 <keyword-only_parameter>` "
3012
+ "用来提供对于无内容的元素要采取缩写 (``<tag />``) 还是扩展 (``<tag></tag>``) 形式的控制。 (由 Ariel "
3013
+ "Poliak 和 Serhiy Storchaka 在 :issue:`14377` 中贡献。)"
2997
3014
2998
3015
#: ../../whatsnew/3.4.rst:1783
2999
3016
msgid "zipfile"
0 commit comments