8000 [po] auto sync · python/python-docs-zh-cn@f843969 · GitHub
[go: up one dir, main page]

Skip to content

Commit f843969

Browse files
[po] auto sync
1 parent c0e9ecb commit f843969

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "92.19%", "updated_at": "2024-03-19T06:24:41Z"}
1+
{"translation": "92.22%", "updated_at": "2024-03-19T07:21:34Z"}

whatsnew/3.4.po

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,9 @@ msgid ""
513513
"restricted convenience methods on the builtin :class:`str`, :class:`bytes` "
514514
"and :class:`bytearray` types, has historically obscured that fact."
515515
msgstr ""
516+
"自首次被引入以来,:mod:`codecs` 模块始终是作为一个类型中立的动态编码和解码系统来运作的。 然而,它与 Python 文本模型,尤其是内置 "
517+
":class:`str`、:class:`bytes` 和 :class:`bytearray` "
518+
"类型上的限定类型的便捷方法的紧密耦合,在历史上掩盖了这一事实。"
516519

517520
#: ../../whatsnew/3.4.rst:295
518521
msgid ""
@@ -522,6 +525,9 @@ msgid ""
522525
"module (and have been covered by the regression test suite) since Python "
523526
"2.4, but were previously only discoverable through runtime introspection."
524527
msgstr ""
528+
"作为明晰情况的关键一步,现在 :meth:`codecs.encode` 和 :meth:`codecs.decode` 便捷函数在 Python "
529+
"2.7、3.3 和 3.4 中都正确地写入了文档。 自 Python 2.4 以来这些函数即已存在于 :mod:`codecs` "
530+
"模块中(并已被回归测试套件所覆盖),但在此前只能通过运行时自省才能发现。"
525531

526532
#: ../../whatsnew/3.4.rst:301
527533
msgid ""
@@ -531,13 +537,16 @@ msgid ""
531537
" Unicode text encodings (in Python 3) or ``basestring`` <-> ``basestring`` "
532538
"conversions (in Python 2)."
533539
msgstr ""
540+
"不同于 :class:`str`, :class:`bytes` 和 :class:`bytearray` 上的便捷方法,:mod:`codecs` "
541+
"的便捷函数同时支持 Python 2 和 Python 3 中的任意编解码器,而非仅限于 Unicode 文本编码格式(在 Python 3 中) 或 "
542+
"``basestring`` <-> ``basestring`` 转换(在 Python 2 中)。"
534543

535544
#: ../../whatsnew/3.4.rst:307
536545
msgid ""
537546
"In Python 3.4, the interpreter is able to identify the known non-text "
538547
"encodings provided in the standard library and direct users towards these "
539548
"general purpose convenience functions when appropriate::"
540-
msgstr ""
549+
msgstr "在 Python 3.4 中,解释器能够识别标准库中提供的已知非文本编码格式并会在适当的时候引导用户找到这些通用型便捷函数::"
541550

542551
#: ../../whatsnew/3.4.rst:326
543552
msgid ""
@@ -639,54 +648,71 @@ msgid ""
639648
"New German EBCDIC :ref:`codec <standard-encodings>` ``cp273``. (Contributed"
640649
" by Michael Bierenfeld and Andrew Kuchling in :issue:`1097797`.)"
641650
msgstr ""
651+
"新增 German EBCDIC :ref:`编解码器 <standard-encodings>` ``cp273``。 (由 Michael "
652+
"Bierenfeld 和 Andrew Kuchling 在 :issue:`1097797` 中贡献。)"
642653

643654
#: ../../whatsnew/3.4.rst:429
644655
msgid ""
645656
"New Ukrainian :ref:`codec <standard-encodings>` ``cp1125``. (Contributed by"
646657
" Serhiy Storchaka in :issue:`19668`.)"
647658
msgstr ""
659+
"新增 Ukrainian :ref:`编解码器 <standard-encodings>` ``cp1125``。 (由 Serhiy "
660+
"Storchaka 在 :issue:`19668` 中贡献。)"
648661

649662
#: ../../whatsnew/3.4.rst:432
650663
msgid ""
651664
":class:`bytes`.join() and :class:`bytearray`.join() now accept arbitrary "
652665
"buffer objects as arguments. (Contributed by Antoine Pitrou in "
653666
":issue:`15958`.)"
654667
msgstr ""
668+
"现在 :class:`bytes`.join() 和 :class:`bytearray`.join() 接受任意缓冲区对象作为参数。 (由 "
669+
"Antoine Pitrou 在 :issue:`15958` 中贡献。)"
655670

656671
#: ../../whatsnew/3.4.rst:436
657672
msgid ""
658673
"The :class:`int` constructor now accepts any object that has an "
659674
"``__index__`` method for its *base* argument. (Contributed by Mark "
660675
"Dickinson in :issue:`16772`.)"
661676
msgstr ""
677+
"现在 :class:`int` 构造器接受任何具有 ``__index__`` 方法的对象作为其 *base* 参数。 (由 Mark "
678+
"Dickinson 在 :issue:`16772` 中贡献。)"
662679

663680
#: ../../whatsnew/3.4.rst:440
664681
msgid ""
665682
"Frame objects now have a :func:`~frame.clear` method that clears all "
666683
"references to local variables from the frame. (Contributed by Antoine "
667684
"Pitrou in :issue:`17934`.)"
668685
msgstr ""
686+
"帧对象现在具有 :func:`~frame.clear` 方法用来从帧中清除所有对局部变量的引用。 (由 Antoine Pitrou 在 "
687+
":issue:`17934` 中贡献。)"
669688

670689
#: ../../whatsnew/3.4.rst:444
671690
msgid ""
672691
":class:`memoryview` is now registered as a :class:`Sequence "
673692
"<collections.abc>`, and supports the :func:`reversed` builtin. (Contributed"
674693
" by Nick Coghlan and Claudiu Popa in :issue:`18690` and :issue:`19078`.)"
675694
msgstr ""
695+
"现在 :class:`memoryview` 被注册为 :class:`序列 <collections.abc>`,并支持 "
696+
":func:`reversed` 内置函数。 (由 Nick Coghlan 和 Claudiu Popa 在 :issue:`18690` 和 "
697+
":issue:`19078` 中贡献。)"
676698

677699
#: ../../whatsnew/3.4.rst:448
678700
msgid ""
679701
"Signatures reported by :func:`help` have been modified and improved in "
680702
"several cases as a result of the introduction of Argument Clinic and other "
681703
"changes to the :mod:`inspect` and :mod:`pydoc` modules."
682704
msgstr ""
705+
"作为对引入 Argument Clinic 以及对 :mod:`inspect` 和 :mod:`pydoc` 模块的其他修改的结果,在各种场合下由 "
706+
":func:`help` 所报告的签名信息已获得修改和提升。"
683707

684708
#: ../../whatsnew/3.4.rst:452
685709
msgid ""
686710
":meth:`~object.__length_hint__` is now part of the formal language "
687711
"specification (see :pep:`424`). (Contributed by Armin Ronacher in "
688712
":issue:`16148`.)"
689713
msgstr ""
714+
"现在 :meth:`~object.__length_hint__` 已成为正式语言规范的一部分 (参见 :pep:`424`)。 (由 Armin "
715+
"Ronacher 在 :issue:`16148` 中贡献。)"
690716

691717
#: ../../whatsnew/3.4.rst:458
692718
msgid "New Modules"
@@ -804,6 +830,8 @@ msgid ""
804830
":pep:`3156`) allows high-level and efficient I/O multiplexing, built upon "
805831
"the :mod:`select` module primitives."
806832
msgstr ""
833+
"新增的 :mod:`selectors` 模块(作为 :pep:`3156` 实现的一部分被创建)允许高层级且高效的 I/O 多路复用,它是在 "
834+
":mod:`select` 模块的基础上构建的。"
807835

808836
#: ../../whatsnew/3.4.rst:555
809837
msgid "statistics"
@@ -816,10 +844,12 @@ msgid ""
816844
"supports calculation of the mean, median, mode, variance and standard "
817845
"deviation of a data series."
818846
msgstr ""
847+
"新增的 :mod:`statistics` 模块(在 :pep:`450` 中定义)直接在标准库中提供了一些核心统计功能。 "
848+
"该模块支持计算数据系列的平均值、中位数、模、方差和标准差等。"
819849

820850
#: ../../whatsnew/3.4.rst:564
821851
msgid ":pep:`450` -- Adding A Statistics Module To The Standard Library"
822-
msgstr ""
852+
msgstr ":pep:`450` -- 为标准库增加 statistics 模块"
823853

824854
#: ../../whatsnew/3.4.rst:565
825855
msgid "PEP written and implemented by Steven D'Aprano"
@@ -835,10 +865,12 @@ msgid ""
835865
" trace memory blocks allocated by Python. It provides the following "
836866
"information:"
837867
msgstr ""
868+
"新增的 :mod:`tracemalloc` 模块(在 :pep:`454` 中定义)是用于追踪由 Python 所分配的内存块的调试工具。 "
869+
"它提供了以下信息:"
838870

839871
#: ../../whatsnew/3.4.rst:576
840872
msgid "Trace where an object was allocated"
841-
msgstr ""
873+
msgstr "追踪对象被分配所在的位置"
842874

843875
#: ../../whatsnew/3.4.rst:577
844876
msgid ""

0 commit comments

Comments
 (0)
0