@@ -2648,14 +2648,16 @@ msgstr "使用 ``example.py`` 脚本的示例::"
2648
2648
2649
2649
#: ../../whatsnew/3.6.rst:1716
2650
2650
msgid "Output of the command ``python3.6 -Wd -X tracemalloc=5 example.py``::"
2651
- msgstr ""
2651
+ msgstr "命令 ``python3.6 -Wd -X tracemalloc=5 example.py`` 的输出:: "
2652
2652
2653
2653
#: ../../whatsnew/3.6.rst:1726
2654
2654
msgid ""
2655
2655
"The \" Object allocated at\" traceback is new and is only displayed if "
2656
2656
":mod:`tracemalloc` is tracing Python memory allocations and if the "
2657
2657
":mod:`warnings` module was already imported."
2658
2658
msgstr ""
2659
+ "\" Object allocated at\" 回溯信息是新增的并且仅当 :mod:`tracemalloc` 在跟踪 Python 内存分配且 "
2660
+ ":mod:`warnings` 模块已被导入时才会显示。"
2659
2661
2660
2662
#: ../../whatsnew/3.6.rst:1732
2661
2663
msgid "winreg"
@@ -2666,6 +2668,8 @@ msgid ""
2666
2668
"Added the 64-bit integer type :data:`REG_QWORD <winreg.REG_QWORD>`. "
2667
2669
"(Contributed by Clement Rouault in :issue:`23026`.)"
2668
2670
msgstr ""
2671
+ "增加了 64 位整数类型 :data:`REG_QWORD <winreg.REG_QWORD>`。 (由 Clement Rouault 在 "
2672
+ ":issue:`23
8000
026` 中贡献。)"
2669
2673
2670
2674
#: ../../whatsnew/3.6.rst:1739
2671
2675
msgid "winsound"
@@ -2677,6 +2681,9 @@ msgid ""
2677
2681
":func:`MessageBeep <winsound.MessageBeep>`, and :func:`PlaySound "
2678
2682
"<winsound.PlaySound>` (:issue:`27982`)."
2679
2683
msgstr ""
2684
+ "允许将关键字参数传给 :func:`Beep <winsound.Beep>`, :func:`MessageBeep "
2685
+ "<winsound.MessageBeep>` 和 :func:`PlaySound <winsound.PlaySound>` "
2686
+ "(:issue:`27982`)。"
2680
2687
2681
2688
#: ../../whatsnew/3.6.rst:1747
2682
2689
msgid "xmlrpc.client"
@@ -2688,6 +2695,8 @@ msgid ""
2688
2695
"types used by the Apache XML-RPC implementation for numerics and ``None``. "
2689
2696
"(Contributed by Serhiy Storchaka in :issue:`26885`.)"
2690
2697
msgstr ""
2698
+ ":mod:`xmlrpc.client` 模块现在支持反 marshall 由 Apache XML-RPC 的数字和 ``None`` "
2699
+ "实现所使用的附加数据类型。 (由 Serhiy Storchaka 在 :issue:`26885` 中贡献。)"
2691
2700
2692
2701
#: ../../whatsnew/3.6.rst:1756
2693
2702
msgid "zipfile"
@@ -2701,13 +2710,19 @@ msgid ""
2701
2710
" check if the :class:`~zipfile.ZipInfo` instance represents a directory. "
2702
2711
"(Contributed by Thomas Kluyver in :issue:`26039`.)"
2703
2712
msgstr ""
2713
+ "新增的 :meth:`ZipInfo.from_file() <zipfile.ZipInfo.from_file>` "
2714
+ "类方法允许基于文件系统中的文件创建 :class:`~zipfile.ZipInfo` 实例。 新增的 :meth:`ZipInfo.is_dir() "
2715
+ "<zipfile.ZipInfo.is_dir>` 方法可被用来检测 :class:`~zipfile.ZipInfo` 实例是否代表一个目录。 (由 "
2716
+ "Thomas Kluyver 在 :issue:`26039` 中贡献。)"
2704
2717
2705
2718
#: ../../whatsnew/3.6.rst:1764
2706
2719
msgid ""
2707
2720
"The :meth:`ZipFile.open() <zipfile.ZipFile.open>` method can now be used to "
2708
2721
"write data into a ZIP file, as well as for extracting data. (Contributed by "
2709
2722
"Thomas Kluyver in :issue:`26039`.)"
2710
2723
msgstr ""
2724
+ "现在 :meth:`ZipFile.open() <zipfile.ZipFile.open>` 方法可被用来将数据写入 ZIP 文件,以及提取数据。 "
2725
+ "(由 Thomas Kluyver 在 :issue:`26039` 中贡献。)"
2711
2726
2712
2727
#: ../../whatsnew/3.6.rst:1770
2713
2728
msgid "zlib"
@@ -2719,6 +2734,8 @@ msgid ""
2719
2734
" keyword arguments. (Contributed by Aviv Palivoda in :issue:`26243` and "
2720
2735
"Xiang Zhang in :issue:`16764` respectively.)"
2721
2736
msgstr ""
2737
+ "现在 :func:`~zlib.compress` 和 :func:`~zlib.decompress` 函数均可接受关键字参数。 (分别由 Aviv "
2738
+ "Palivoda 在 :issue:`26243` 以及 Xiang Zhang 在 :issue:`16764` 中贡献。)"
2722
2739
2723
2740
#: ../../whatsnew/3.6.rst:1779
2724
2741
msgid "Optimizations"
@@ -2731,12 +2748,17 @@ msgid ""
2731
2748
"with input and reviews from Serhiy Storchaka and Victor Stinner in "
2732
2749
":issue:`26647` and :issue:`28050`.)"
2733
2750
msgstr ""
2751
+ "Python 解释器现在使用 16 位字代码而不是字节代码,这使得许多操作码优化成为可能。 (由 Demur Rumed 在 "
2752
+ ":issue:`26647` 和 :issue:`28050` 中贡献并得到来自 Serhiy Storchaka 和 Victor Stinner "
2753
+ "的协助和评估。)"
2734
2754
2735
2755
#: ../../whatsnew/3.6.rst:1786
2736
2756
msgid ""
2737
2757
"The :class:`asyncio.Future` class now has an optimized C implementation. "
2738
2758
"(Contributed by Yury Selivanov and INADA Naoki in :issue:`26081`.)"
2739
2759
msgstr ""
2760
+ "现在 :class:`asyncio.Future` 类已拥有经优化的 C 实现。 (由 Yury Selivanov 和 INADA Naoki 在 "
2761
+ ":issue:`26081` 中贡献。)"
2740
2762
2741
2763
#: ../../whatsnew/3.6.rst:1789
2742
2764
msgid ""
0 commit comments