@@ -513,6 +513,9 @@ msgid ""
513
513
"restricted convenience methods on the builtin :class:`str`, :class:`bytes` "
514
514
"and :class:`bytearray` types, has historically obscured that fact."
515
515
msgstr ""
516
+ "自首次被引入以来,:mod:`codecs` 模块始终是作为一个类型中立的动态编码和解码系统来运作的。 然而,它与 Python 文本模型,尤其是内置 "
517
+ ":class:`str`、:class:`bytes` 和 :class:`bytearray` "
518
+ "类型上的限定类型的便捷方法的紧密耦合,在历史上掩盖了这一事实。"
516
519
517
520
#: ../../whatsnew/3.4.rst:295
518
521
msgid ""
@@ -522,6 +525,9 @@ msgid ""
522
525
"module (and have been covered by the regression test suite) since Python "
523
526
"2.4, but were previously only discoverable through runtime introspection."
524
527
msgstr ""
528
+ "作为明晰情况的关键一步,现在 :meth:`codecs.encode` 和 :meth:`codecs.decode` 便捷函数在 Python "
529
+ "2.7、3.3 和 3.4 中都正确地写入了文档。 自 Python 2.4 以来这些函数即已存在于 :mod:`codecs` "
530
+ "模块中(并已被回归测试套件所覆盖),但在此前只能通过运行时自省才能发现。"
525
531
526
532
#: ../../whatsnew/3.4.rst:301
527
533
msgid ""
@@ -531,13 +537,16 @@ msgid ""
531
537
" Unicode text encodings (in Python 3) or ``basestring`` <-> ``basestring`` "
532
538
"conversions (in Python 2)."
533
539
msgstr ""
540
+ "不同于 :class:`str`, :class:`bytes` 和 :class:`bytearray` 上的便捷方法,:mod:`codecs` "
541
+ "的便捷函数同时支持 Python 2 和 Python 3 中的任意编解码器,而非仅限于 Unicode 文本编码格式(在 Python 3 中) 或 "
542
+ "``basestring`` <-> ``basestring`` 转换(在 Python 2 中)。"
534
543
535
544
#: ../../whatsnew/3.4.rst:307
536
545
msgid ""
537
546
"In Python 3.4, the interpreter is able to identify the known non-text "
538
547
"encodings provided in the standard library and direct users towards these "
539
548
"general purpose convenience functions when appropriate::"
540
- msgstr ""
549
+ msgstr "在 Python 3.4 中,解释器能够识别标准库中提供的已知非文本编码格式并会在适当的时候引导用户找到这些通用型便捷函数:: "
541
550
542
551
#: ../../whatsnew/3.4.rst:326
543
552
msgid ""
@@ -639,54 +648,71 @@ msgid ""
639
648
"New German EBCDIC :ref:`codec <standard-encodings>` ``cp273``. (Contributed"
640
649
" by Michael Bierenfeld and Andrew Kuchling in :issue:`1097797`.)"
641
650
msgstr ""
651
+ "新增 German EBCDIC :ref:`编解码器 <standard-encodings>` ``cp273``。 (由 Michael "
652
+ "Bierenfeld 和 Andrew Kuchling 在 :issue:`1097797` 中贡献。)"
642
653
643
654
#: ../../whatsnew/3.4.rst:429
644
655
msgid ""
645
656
"New Ukrainian :ref:`codec <standard-encodings>` ``cp1125``. (Contributed by"
646
657
" Serhiy Storchaka in :issue:`19668`.)"
647
658
msgstr ""
659
+ "新增 Ukrainian :ref:`编解码器 <standard-encodings>` ``cp1125``。 (由 Serhiy "
660
+ "Storchaka 在 :issue:`19668` 中贡献。)"
648
661
649
662
#: ../../whatsnew/3.4.rst:432
650
663
msgid ""
651
664
":class:`bytes`.join() and :class:`bytearray`.join() now accept arbitrary "
652
665
"buffer objects as arguments. (Contributed by Antoine Pitrou in "
653
666
":issue:`15958`.)"
654
667
msgstr ""
668
+ "现在 :class:`bytes`.join() 和 :class:`bytearray`.join() 接受任意缓冲区对象作为参数。 (由 "
669
+ "Antoine Pitrou 在 :issue:`15958` 中贡献。)"
655
670
656
671
#: ../../whatsnew/3.4.rst:436
657
672
msgid ""
658
673
"The :class:`int` constructor now accepts any object that has an "
659
674
"``__index__`` method for its *base* argument. (Contributed by Mark "
660
675
"Dickinson in :issue:`16772`.)"
661
676
msgstr ""
677
+ "现在 :class:`int` 构造器接受任何具有 ``__index__`` 方法的对象作为其 *base* 参数。 (由 Mark "
678
+ "Dickinson 在 :issue:`16772` 中贡献。)"
662
679
663
680
#: ../../whatsnew/3.4.rst:440
664
681
msgid ""
665
682
"Frame objects now have a :func:`~frame.clear` method that clears all "
666
683
"references to local variables from the frame. (Contributed by Antoine "
667
684
"Pitrou in :issue:`17934`.)"
668
685
msgstr ""
686
+ "帧对象现在具有 :func:`~frame.clear` 方法用来从帧中清除所有对局部变量的引用。 (由 Antoine Pitrou 在 "
687
+ ":issue:`17934` 中贡献。)"
669
688
670
689
#: ../../whatsnew/3.4.rst:444
671
690
msgid ""
672
691
":class:`memoryview` is now registered as a :class:`Sequence "
673
692
"<collections.abc>`, and supports the :func:`reversed` builtin. (Contributed"
674
693
" by Nick Coghlan and Claudiu Popa in :issue:`18690` and :issue:`19078`.)"
675
694
msgstr ""
695
+ "现在 :class:`memoryview` 被注册为 :class:`序列 <collections.abc>`,并支持 "
696
+ ":func:`reversed` 内置函数。 (由 Nick Coghlan 和 Claudiu Popa 在 :issue:`18690` 和 "
697
+ ":issue:`19078` 中贡献。)"
676
698
677
699
#: ../../whatsnew/3.4.rst:448
678
700
msgid ""
679
701
"Signatures reported by :func:`help` have been modified and improved in "
680
702
"several cases as a result of the introduction of Argument Clinic and other "
681
703
"changes to the :mod:`inspect` and :mod:`pydoc` modules."
682
704
msgstr ""
705
+ "作为对引入 Argument Clinic 以及对 :mod:`inspect` 和 :mod:`pydoc` 模块的其他修改的结果,在各种场合下由 "
706
+ ":func:`help` 所报告的签名信息已获得修改和提升。"
683
707
684
708
#: ../../whatsnew/3.4.rst:452
685
709
msgid ""
686
710
":meth:`~object.__length_hint__` is now part of the formal language "
687
711
"specification (see :pep:`424`). (Contributed by Armin Ronacher in "
688
712
":issue:`16148`.)"
689
713
msgstr ""
714
+ "现在 :meth:`~object.__length_hint__` 已成为正式语言规范的一部分 (参见 :pep:`424`)。 (由 Armin "
715
+ "Ronacher 在 :issue:`16148` 中贡献。)"
690
716
691
717
#: ../../whatsnew/3.4.rst:458
692
718
msgid "New Modules"
@@ -804,6 +830,8 @@ msgid ""
804
830
":pep:`3156`) allows high-level and efficient I/O multiplexing, built upon "
805
831
"the :mod:`select` module primitives."
806
832
msgstr ""
833
+ "新增的 :mod:`selectors` 模块(作为 :pep:`3156` 实现的一部分被创建)允许高层级且高效的 I/O 多路复用,它是在 "
834
+ ":mod:`select` 模块的基础上构建的。"
807
835
808
836
#: ../../whatsnew/3.4.rst:555
809
837
msgid "statistics"
@@ -816,10 +844,12 @@ msgid ""
816
844
"supports calculation of the mean, median, mode, variance and standard "
817
845
"deviation of a data series."
818
846
msgstr ""
847
+ "新增的 :mod:`statistics` 模块(在 :pep:`450` 中定义)直接在标准库中提供了一些核心统计功能。 "
848
+ "该模块支持计算数据系列的平均值、中位数、模、方差和标准差等。"
819
849
820
850
#: ../../whatsnew/3.4.rst:564
821
851
msgid ":pep:`450` -- Adding A Statistics Module To The Standard Library"
822
- msgstr ""
852
+ msgstr ":pep:`450` -- 为标准库增加 statistics 模块 "
823
853
824
854
#: ../../whatsnew/3.4.rst:565
825
855
msgid "PEP written and implemented by Steven D'Aprano"
@@ -835,10 +865,12 @@ msgid ""
835
865
" trace memory blocks allocated by Python. It provides the following "
836
866
"information:"
837
867
msgstr ""
868
+ "新增的 :mod:`tracemalloc` 模块(在 :pep:`454` 中定义)是用于追踪由 Python 所分配的内存块的调试工具。 "
869
+ "它提供了以下信息:"
838
870
839
871
#: ../../whatsnew/3.4.rst:576
840
872
msgid "Trace where an object was allocated"
841
- msgstr ""
873
+ msgstr "追踪对象被分配所在的位置 "
842
874
843
875
#: ../../whatsnew/3.4.rst:577
844
876
msgid ""
0 commit comments