@@ -3024,13 +3024,18 @@ msgid ""
3024
3024
"example, this could be used to exclude test files from the archive. "
3025
3025
"(Contributed by Christian Tismer in :issue:`19274`.)"
3026
3026
msgstr ""
3027
+ ":class:`~zipfile.PyZipFile` 类的 :meth:`~zipfile.PyZipFile.writepy` 方法新增的 "
3028
+ "*filterfunc* 选项可用来控制要将哪些目录添加到归档中。 例如,可以用它将测试文件排除在归档之外。 (由 Christian Tismer 在"
3029
+ " :issue:`19274` 中贡献。)"
3027
3030
3028
3031
#: ../../whatsnew/3.4.rst:1791
3029
3032
msgid ""
3030
3033
"The *allowZip64* parameter to :class:`~zipfile.ZipFile` and "
3031
3034
":class:`~zipfile.PyZipfile` is now ``True`` by default. (Contributed by "
3032
3035
"William Mallard in :issue:`17201`.)"
3033
3036
msgstr ""
3037
+ "现在 :class:`~zipfile.ZipFile` 和 :class:`~zipfile.PyZipfile` 的 *allowZip64* "
3038
+ "形参默认值为 ``True``。 (由 William Mallard 在 :issue:`17201` 中贡献。)"
3034
3039
3035
3040
#: ../../whatsnew/3.4.rst:1798
3036
3041
msgid "CPython Implementation Changes"
@@ -3061,6 +3066,8 @@ msgid ""
3061
3066
"generators with :keyword:`finally` clauses, can be finalized when they are "
3062
3067
"part of a reference cycle."
3063
3068
msgstr ""
3069
+ ":pep:`442` 移除了 CPython 中有关对象最终化的限制和特殊处理。 有了它,具有 :meth:`__del__` 方法的对象,以及具有 "
3070
+ ":keyword:`finally` 子句的生成器在有循环引用的情况下也可以被最终化。"
3064
3071
3065
3072
#: ../../whatsnew/3.4.rst:1825
3066
3073
msgid ""
@@ -3070,10 +3077,12 @@ msgid ""
3070
3077
"class of interpreter-shutdown-time errors, usually involving ``__del__`` "
3071
3078
"methods, that have plagued Python since the cyclic GC was first introduced."
3072
3079
msgstr ""
3080
+ "作为此项改变的一部分,大多数情况下在解释器关闭期间模块的全局变量不会被强制设为 :const:`None`,而是取决于循环垃圾回收器的正常操作。 "
3081
+ "这避免了大量的解释器关闭时错误,这类错误通常都涉及 ``__del__`` 方法,它们自循环 GC 首次被引入起就一直困扰着 Python。"
3073
3082
3074
3083
#: ../../whatsnew/3.4.rst:1834
3075
3084
msgid ":pep:`442` -- Safe object finalization"
3076
- msgstr ""
3085
+ msgstr ":pep:`442` -- 安全的对象最终化 "
3077
3086
3078
3087
#: ../../whatsnew/3.4.rst:1841
3079
3088
msgid "PEP 456: Secure and Interchangeable Hash Algorithm"
0 commit comments