@@ -3956,6 +3956,13 @@ msgid ""
39563956"deprecated and is now ignored. (Contributed by Demian Brecht in "
39573957":issue:`2211`.)"
39583958msgstr ""
3959+ ":class:`http.cookies.Morsel` 字典型接口已更为自洽:morsel 比较现在会将 "
3960+ ":attr:`~http.cookies.Morsel.key` 和 :attr:`~http.cookies.Morsel.value` "
3961+ "都纳入考虑,:meth:`~http.cookies.Morsel.copy` 现在将得到一个 "
3962+ ":class:`~http.cookies.Morsel` 实例而不是 :class:`dict`,而 "
3963+ ":meth:`~http.cookies.Morsel.update` 现在当更新字典中的任一个键无效时将引发一个异常。 "
3964+ "此外,:func:`~http.cookies.Morsel.set` 中未写入文档的 *LegalChars* 形参已被弃用并且现在会被忽略。 (由 "
3965+ "Demian Brecht 在 :issue:`2211` 中贡献。)"
39593966
39603967#: ../../whatsnew/3.5.rst:2469
39613968msgid ""
@@ -3970,6 +3977,11 @@ msgid ""
39703977"changed in Python 3.5, all old ``.pyo`` files from previous versions of "
39713978"Python are invalid regardless of this PEP."
39723979msgstr ""
3980+ ":pep:`488` 从 Python 中移除了``.pyo`` 文件并在 ``.pyc`` 文件名中引入可选的 ``opt-`` 标签。 "
3981+ ":func:`importlib.util.cache_from_source` 增加了 *optimization* 形参以协助控制 ``opt-``"
3982+ " 标签。 为此,该函数的 *debug_override* 形参现在已被弃用。 ``.pyo`` 文件也已不再可以作为传给 Python "
3983+ "解释器的文件参数并且在单独分发(即不带源码的代码分发)时将不起作用。 由于在 Python 3.5 中字节码的魔术数字已被改变,即使在不考虑此 PEP "
3984+ "的情况下所有之前版本的 Python 的旧 ``.pyo`` 文件都已不可用。"
39733985
39743986#: ../../whatsnew/3.5.rst:2480
39753987msgid ""
@@ -4024,6 +4036,9 @@ msgid ""
40244036"module and the :func:`help` function. (Contributed by Serhiy Storchaka in "
40254037":issue:`15582`.)"
40264038msgstr ""
4039+ "现在 :func:`inspect.getdoc` 将返回从基类继承的文档字符串。 如果继承的文档字符串可用就不需要再复制文档字符串。 "
4040+ "要屏蔽继承的字符串,必须指定一个空字符串(否则将会填充文档)。 此项改变将影响 :mod:`pydoc` 模块和 :func:`help` 函数的输出。"
4041+ " (由 Serhiy Storchaka 在 :issue:`15582` 中贡献。)"
40274042
40284043#: ../../whatsnew/3.5.rst:2507
40294044msgid ""
@@ -4033,6 +4048,9 @@ msgid ""
40334048":func:`functools.partial`. (Contributed by Alexander Belopolsky in "
40344049":issue:`7830`.)"
40354050msgstr ""
4051+ "嵌套的 :func:`functools.partial` 调用现在已被展平。 如果你需要之前的行为,现在你可以为 "
4052+ ":func:`functools.partial` 对象添加一个属性或者创建一个 :func:`functools.partial` 的子类。 (由 "
4053+ "Alexander Belopolsky 在 :issue:`7830` 中贡献。)"
40364054
40374055#: ../../whatsnew/3.5.rst:2514
40384056msgid "Changes in the C API"
@@ -4044,6 +4062,8 @@ msgid ""
40444062":c:type:`PyMemoryViewObject` structure has been removed. All extensions "
40454063"relying on the relevant parts in ``memoryobject.h`` must be rebuilt."
40464064msgstr ""
4065+ "(非公开) :c:type:`PyMemoryViewObject` 结构体中未写入文档的 :c:member:`!format` 成员已被移除。 "
4066+ "所有依赖于 ``memoryobject.h`` 中相关部分的扩展都必须重新编译。"
40474067
40484068#: ../../whatsnew/3.5.rst:2521
40494069msgid ""
0 commit comments