@@ -1612,6 +1612,8 @@ msgid ""
16121612"In addition, there is a convenience new function, :func:`pprint.pp` that is "
16131613"like :func:`pprint.pprint` but with *sort_dicts* defaulting to ``False``::"
16141614msgstr ""
1615+ "除此之外,还增加了一个方便的新函数 :func:`pprint.pp`,它类似于 :func:`pprint.pprint` 但它的 "
1616+ "*sort_dicts* 默认为 ``False``::"
16151617
16161618#: ../../whatsnew/3.8.rst:1123
16171619msgid "(Contributed by Rémi Lapeyre in :issue:`30670`.)"
@@ -2515,6 +2517,9 @@ msgid ""
25152517"deprecated and will be prohibited in Python 3.9. (Contributed by Elvis "
25162518"Pranskevichus in :issue:`34075`.)"
25172519msgstr ""
2520+ "将不是 :class:`concurrent.futures.ThreadPoolExecutor` 的实例的对象传给 "
2521+ ":meth:`loop.set_default_executor() <asyncio.loop.set_default_executor>` "
2522+ "已被弃用,并将在 Python 3.9 中被禁止。 (由 Elvis Pranskevichus 在 :issue:`34075` 中贡献。)"
25182523
25192524#: ../../whatsnew/3.8.rst:1642
25202525msgid ""
@@ -2589,13 +2594,23 @@ msgid ""
25892594":class:`asyncio.Queue`, :func:`asyncio.create_subprocess_exec`, and "
25902595":func:`asyncio.create_subprocess_shell`."
25912596msgstr ""
2597+ "在 :mod:`asyncio` 中,*loop* 参数的显式传递已被弃用并且到 3.10 版时将会在以下函数中被移除: "
2598+ ":func:`asyncio.sleep`, :func:`asyncio.gather`, :func:`asyncio.shield`, "
2599+ ":func:`asyncio.wait_for`, :func:`asyncio.wait`, "
2600+ ":func:`asyncio.as_completed`, :class:`asyncio.Task`, :class:`asyncio.Lock`, "
2601+ ":class:`asyncio.Event`, :class:`asyncio.Condition`, "
2602+ ":class:`asyncio.Semaphore`, :class:`asyncio.BoundedSemaphore`, "
2603+ ":class:`asyncio.Queue`, :func:`asyncio.create_subprocess_exec` 以及 "
2604+ ":func:`asyncio.create_subprocess_shell`。"
25922605
25932606#: ../../whatsnew/3.8.rst:1681
25942607msgid ""
25952608"The explicit passing of coroutine objects to :func:`asyncio.wait` has been "
25962609"deprecated and will be removed in version 3.11. (Contributed by Yury "
25972610"Selivanov in :issue:`34790`.)"
25982611msgstr ""
2612+ "将协程对象显式传递给 :func:`asyncio.wait` 的做法已被弃用并且将在 3.11 版中被移除。 (由 Yury Selivanov 在 "
2613+ ":issue:`34790` 中贡献。)"
25992614
26002615#: ../../whatsnew/3.8.rst:1685
26012616msgid ""
@@ -3138,6 +3153,9 @@ msgid ""
31383153"instance of ``Constant``. (Contributed by Serhiy Storchaka in "
31393154":issue:`32892`.)"
31403155msgstr ""
3156+ "简化了字面值的 AST。 所有常量将被表示为 :class:`ast.Constant` 的实例。 实例化旧类 ``Num``, ``Str``, "
3157+ "``Bytes``, ``NameConstant`` 和 ``Ellipsis`` 都将返回 ``Constant`` 的实例。 (由 Serhiy "
3158+ "Storchaka 在 :issue:`32892` 中贡献。)"
31413159
31423160#: ../../whatsnew/3.8.rst:1960
31433161msgid ""
@@ -3146,17 +3164,22 @@ msgid ""
31463164"*timeout*, it was cancelled and immediately returned. (Contributed by Elvis "
31473165"Pranskevichus in :issue:`32751`.)"
31483166msgstr ""
3167+ "当使用 :class:`asyncio.Task` 的实例时,函数 :func:`asyncio.wait_for` 现在会正确地等待撤销。 "
3168+ "在此之前当达到 *timeout* 时,它会被撤销并立即返回。 (由 Elvis Pranskevichus 在 :issue:`32751` "
3169+ "中贡献。)"
31493170
31503171#: ../../whatsnew/3.8.rst:1965
31513172msgid ""
31523173"The function :func:`asyncio.BaseTransport.get_extra_info` now returns a safe"
31533174" to use socket object when 'socket' is passed to the *name* parameter. "
31543175"(Contributed by Yury Selivanov in :issue:`37027`.)"
31553176msgstr ""
3177+ "当将 'socket' 作为 *name* 形参传入时,函数 :func:`asyncio.BaseTransport.get_extra_info` "
3178+ "现在会返回一个可安全使用的套接字对象。 (由 Yury Selivanov 在 :issue:`37027` 中贡献。)"
31563179
31573180#: ../../whatsnew/3.8.rst:1969
31583181msgid ":class:`asyncio.BufferedProtocol` has graduated to the stable API."
3159- msgstr ""
3182+ msgstr ":class:`asyncio.BufferedProtocol` 已经晋级为稳定 API。 "
31603183
31613184#: ../../whatsnew/3.8.rst:1973
31623185msgid ""
@@ -3173,6 +3196,12 @@ msgid ""
31733196"also verified by the installer). (Contributed by Steve Dower in "
31743197":issue:`36085`.)"
31753198msgstr ""
3199+ "在 Windows 上对扩展模块的 DLL 依赖以及通过 :mod:`ctypes` 加载的 DLL 的解析现在将更为安全。 只有系统路径、包含相信 "
3200+ "DLL 或 PYD 文件的路径以及通过 :func:`~os.add_dll_directory` 添加的目录才会被作为加载时依赖的搜索位置。 "
3201+ "特别地,:envvar:`PATH` 和当前工作目录将不再被使用,对它们的修改将不再对正常的 DLL 解析产生影响。 "
3202+ "如果你的应用依赖于这些机制,你应当先检查 :func:`~os.add_dll_directory`,如果它存在就用它在加载你的库时添加你的 DLL "
3203+ "目录。 请注意 Windows 7 用户还需要确保 Windows 更新包 KB2533623 已安装(这一点也会由安装器进行验证)。 (由 Steve"
3204+ " Dower 在 :issue:`36085` 中贡献。)"
31763205
31773206#: ../../whatsnew/3.8.rst:1986
31783207msgid ""
@@ -3453,7 +3482,7 @@ msgstr ""
34533482
34543483#: ../../whatsnew/3.8.rst:2167
34553484msgid "Here's a summary of performance improvements since Python 3.3:"
3456- msgstr ""
3485+ msgstr "以下是自 Python 3.3 以来性能提升情况的总结: "
34573486
34583487#: ../../whatsnew/3.8.rst:2217
34593488msgid "Notable changes in Python 3.8.1"
0 commit comments