@@ -1818,6 +1818,8 @@ msgid ""
18181818"usernames and passwords using UTF-8, as recommended by the RFCs. "
18191819"(Contributed by Milan Oberkirch in :issue:`21800`.)"
18201820msgstr ""
1821+ "现在 :mod:`imaplib` 模块会自动使用 UTF-8 自动编码非 ASCII 字符串的用户名和密码,如 RFC 所建议的那样。 (由 "
1822+ "Milan Oberkirch 在 :issue:`21800` 中贡献。)"
18211823
18221824#: ../../whatsnew/3.5.rst:1253
18231825msgid "imghdr"
@@ -1831,6 +1833,10 @@ msgid ""
18311833"<https://en.wikipedia.org/wiki/WebP>`_ format (contributed by Fabrice Aneche"
18321834" and Claudiu Popa in :issue:`20197`.)"
18331835msgstr ""
1836+ "现在 :func:`~imghdr.what` 函数可识别 `OpenEXR <https://www.openexr.com>`_ 格式(由 "
1837+ "Martin Vignali 和 Claudiu Popa 在 :issue:`20295` 中贡献),以及 `WebP "
1838+ "<https://en.wikipedia.org/wiki/WebP>`_ 格式(由 Fabrice Aneche 和 Claudiu Popa 在 "
1839+ ":issue:`20197` 中贡献。)"
18341840
18351841#: ../../whatsnew/3.5.rst:1263
18361842msgid "importlib"
@@ -1842,6 +1848,8 @@ msgid ""
18421848"lazy loading of modules in applications where startup time is important. "
18431849"(Contributed by Brett Cannon in :issue:`17621`.)"
18441850msgstr ""
1851+ ":class:`util.LazyLoader <importlib.util.LazyLoader>` "
1852+ "类允许在对启动时间敏感的应用程序中使用模块的惰性加载。 (由 Brett Cannon 在 :issue:`17621` 中贡献。)"
18451853
18461854#: ../../whatsnew/3.5.rst:1269
18471855msgid ""
@@ -1851,6 +1859,10 @@ msgid ""
18511859" a string by running ``exec(code, module.__dict__)``. (Contributed by Brett "
18521860"Cannon in :issue:`21156`.)"
18531861msgstr ""
1862+ "现在 :func:`abc.InspectLoader.source_to_code() "
1863+ "<importlib.abc.InspectLoader.source_to_code>` 方法属于静态方法。 这样将可更方便地通过运行 "
1864+ "``exec(code, module.__dict__)`` 基于字符串编译的代码来初始化模块。 (由 Brett Cannon 在 "
1865+ ":issue:`21156` 中贡献。)"
18541866
18551867#: ../../whatsnew/3.5.rst:1275
18561868msgid ""
@@ -1860,6 +1872,9 @@ msgid ""
18601872"will set the various import-controlled attributes based on the passed-in "
18611873"spec object. (Contributed by Brett Cannon in :issue:`20383`.)"
18621874msgstr ""
1875+ "新增的 :func:`util.module_from_spec() <importlib.util.module_from_spec>` "
1876+ "函数现在是创建新模块的首先方式。 相比直接创建 :class:`types.ModuleType` "
1877+ "实例,这个新函数将基于传入的规格说明对象设置各种导入控制的属性。 (由 Brett Cannon 在 :issue:`20383` 中贡献。)"
18631878
18641879#: ../../whatsnew/3.5.rst:1283
18651880msgid "inspect"
0 commit comments