@@ -3087,6 +3087,8 @@ msgid ""
30873087"are not defined now raises an :exc:`ImportWarning`. (Contributed by Rose "
30883088"Ames in :issue:`25791`.)"
30893089msgstr ""
3090+ "当执行相对导入时,现在当 ``__spec__`` 或 ``__package__`` 未被定义时从调用方模块回退到 ``__name__`` 和 "
3091+ "``__path__`` 会引发 :exc:`ImportWarning`。 (由 Rose Ames 在 :issue:`25791` 中贡献。)"
30903092
30913093#: ../../whatsnew/3.6.rst:1959
30923094msgid "Deprecated Python modules, functions and methods"
@@ -3123,6 +3125,8 @@ msgid ""
31233125"with the ``'r'`` mode. This behavior is now deprecated and will be removed "
31243126"in 3.8. (Contributed by Serhiy Storchaka in :issue:`21708`.)"
31253127msgstr ""
3128+ "与其他 :mod:`dbm` 实现不同,:mod:`dbm.dumb` 模块会以 ``'rw'`` 模式创建数据库并允许修改以 ``'r'`` "
3129+ "模式打开的数据库。 此行为现在已被弃用并将在 3.8 中移除。 (由 Serhiy Storchaka 在 :issue:`21708` 中贡献。)"
31263130
31273131#: ../../whatsnew/3.6.rst:1988
31283132msgid ""
@@ -3141,6 +3145,8 @@ msgid ""
31413145"The support of non-integer arguments in :func:`~grp.getgrgid` has been "
31423146"deprecated. (Contributed by Serhiy Storchaka in :issue:`26129`.)"
31433147msgstr ""
3148+ "在 :func:`~grp.getgrgid` 中对非整数参数的支持已被弃用。 (由 Serhiy Storchaka 在 :issue:`26129`"
3149+ " 中贡献。)"
31443150
31453151#: ../../whatsnew/3.6.rst:2005
31463152msgid ""
@@ -3151,6 +3157,11 @@ msgid ""
31513157"been deprecated in previous versions of Python in favour of "
31523158":meth:`importlib.abc.Loader.exec_module`."
31533159msgstr ""
3160+ "现在 :meth:`importlib.machinery.SourceFileLoader.load_module` 和 "
3161+ ":meth:`importlib.machinery.SourcelessFileLoader.load_module` 方法已被弃用。 它们是 "
3162+ ":mod:`importlib` 中仅存的尚未在之前的 Python 版本中被弃用并改为 "
3163+ ":meth:`importlib.abc.Loader.exec_module` 的 "
3164+ ":meth:`importlib.abc.Loader.load_module` 实现。"
31543165
31553166#: ../../whatsnew/3.6.rst:2012
31563167msgid ""
@@ -3166,6 +3177,9 @@ msgid ""
31663177"functions is now deprecated. (Contributed by Serhiy Storchaka in "
31673178":issue:`25791` and :issue:`26754`.)"
31683179msgstr ""
3180+ "未写入文档的对于将普通 :term:`字节型对象 <bytes-like object>` 作为 :mod:`os` 的函数, "
3181+ ":func:`compile` 及类似函数中的路径的支持现已被弃用。 (由 Serhiy Storchaka 在 :issue:`25791` 和 "
3182+ ":issue:`26754` 中贡献。)"
31693183
31703184#: ../../whatsnew/3.6.rst:2027
31713185msgid ""
@@ -3174,13 +3188,17 @@ msgid ""
31743188"version. Flags at the start of a regular expression are still allowed. "
31753189"(Contributed by Serhiy Storchaka in :issue:`22493`.)"
31763190msgstr ""
3191+ "对于在正则表达式中间使用内联旗标 ``(?letters)`` 的支持已被弃用并将在未来的 Python 版本中移除。 "
3192+ "在正则表达式开头的旗标仍然被允许。 (由 Serhiy Storchaka 在 :issue:`22493` 中贡献。)"
31773193
31783194#: ../../whatsnew/3.6.rst:2035
31793195msgid ""
31803196"OpenSSL 0.9.8, 1.0.0 and 1.0.1 are deprecated and no longer supported. In "
31813197"the future the :mod:`ssl` module will require at least OpenSSL 1.0.2 or "
31823198"1.1.0."
31833199msgstr ""
3200+ "OpenSSL 0.9.8, 1.0.0 和 1.0.1 已被弃用并不再受支持。 未来的 :mod:`ssl` 模块将至少需要 OpenSSL "
3201+ "1.0.2 或 1.1.0。"
31843202
31853203#: ../../whatsnew/3.6.rst:2039
31863204msgid ""
0 commit comments