@@ -1822,6 +1822,11 @@ msgid ""
18221822":class:`importlib.machinery.ExtensionFileLoader` couldn't be used with "
18231823":class:`importlib.util.LazyLoader`."
18241824msgstr ""
1825+ ":class:`importlib.util.LazyLoader` 现在将调用被包装的加载器上的 "
1826+ ":meth:`~importlib.abc.Loader.create_module`,移除了 "
1827+ ":class:`importlib.machinery.BuiltinImporter` 和 "
1828+ ":class:`importlib.machinery.ExtensionFileLoader` 不能用于 "
1829+ ":class:`importlib.util.LazyLoader` 的限制。"
18251830
18261831#: ../../whatsnew/3.6.rst:1212
18271832msgid ""
@@ -1830,6 +1835,10 @@ msgid ""
18301835":func:`importlib.util.spec_from_file_location` now accept a :term:`path-like"
18311836" object`."
18321837msgstr ""
1838+ ":func:`importlib.util.cache_from_source`, "
1839+ ":func:`importlib.util.source_from_cache` 和 "
1840+ ":func:`importlib.util.spec_from_file_location` 现在将接受 :term:`path-like "
1841+ "object`。"
18331842
18341843#: ../../whatsnew/3.6.rst:1219
18351844msgid "inspect"
@@ -1842,6 +1851,9 @@ msgid ""
18421851"generator expression scopes as if they were positional-only parameters "
18431852"called ``implicit0``. (Contributed by Jelle Zijlstra in :issue:`19611`.)"
18441853msgstr ""
1854+ ":func:`inspect.signature() <inspect.signature>` "
1855+ "函数现在会报告编译器为推导式和生成器表达式作用域生成的隐式 ``.0`` 形参,就像它们是调用``implicit0`` 时的仅限位置形参一样。 (由 "
1856+ "Jelle Zijlstra 在 :issue:`19611` 中贡献。)"
18451857
18461858#: ../../whatsnew/3.6.rst:1226
18471859msgid ""
@@ -1852,6 +1864,10 @@ msgid ""
18521864":func:`inspect.signature` interface remains the recommended approach for new"
18531865" code. (Contributed by Nick Coghlan in :issue:`27172`)"
18541866msgstr ""
1867+ "为了减少从 Python 2.7 和旧式 :func:`inspect.getargspec` API 升级时的代码问题,先前被写入文档的对 "
1868+ ":func:`inspect.getfullargspec` 的弃用已被撤销。 虽然这个函数对于单/源 Python 2/3 "
1869+ "代码库来说很方便,但对于新代码来说功能更丰富的 :func:`inspect.signature` 接口仍然是推荐的方式。 (由 Nick "
1870+ "Coghlan 在 :issue:`27172` 中贡献。)"
18551871
18561872#: ../../whatsnew/3.6.rst:1235
18571873msgid "json"
0 commit comments