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