@@ -734,19 +734,23 @@ msgid ""
734
734
"corresponding sections in :ref:`whats-new-in-2.6` should be consulted for "
735
735
"longer descriptions."
736
736
msgstr ""
737
+ "由于许多用户可能会直接从 Python 2.5 跳到 Python 3.0,因此本节提醒读者注意最初为 Python 3.0 设计但后来移植到 "
738
+ "Python 2.6 的新特性。 如需更详细的说明请参阅 :ref:`whats-new-in-2.6` 中的相应章节。"
737
739
738
740
#: ../../whatsnew/3.0.rst:488
739
741
msgid ""
740
742
":ref:`pep-0343`. The :keyword:`with` statement is now a standard feature "
741
743
"and no longer needs to be imported from the :mod:`__future__`. Also check "
742
744
"out :ref:`new-26-context-managers` and :ref:`new-module-contextlib`."
743
745
msgstr ""
746
+ ":ref:`pep-0343`。 现在 :keyword:`with` 语句已是一个标准特性而不再需要从 :mod:`__future__` 导入。 "
747
+ "另请参阅 :ref:`new-26-context-managers` 和 :ref:`new-module-contextlib`。"
744
748
745
749
#: ../../whatsnew/3.0.rst:493
746
750
msgid ""
747
751
":ref:`pep-0366`. This enhances the usefulness of the :option:`-m` option "
748
752
"when the referenced module lives in a package."
749
- msgstr ""
753
+ msgstr ":ref:`pep-0366`。 这增强了 :option:`-m` 选项在被引用的模块位于包中时的实用性。 "
750
754
751
755
#: ../../whatsnew/3.0.rst:496
752
756
msgid ":ref:`pep-0370`."
@@ -765,26 +769,33 @@ msgid ""
765
769
"API for string formatting, and to start deprecating the ``%`` operator in "
766
770
"Python 3.1."
767
771
msgstr ""
772
+ ":ref:`pep-3101`。 注意:2.6 说明文档提到 :meth:`format` 方法同时适用于 8 位和 Unicode 字符串。 在 "
773
+ "3.0 中,只有 :class:`str` 类型(带有 Unicode 支持的文本字符串)才支持此方法;:class:`bytes` 类型并不支持。 "
774
+ "最终的计划是使其成为仅针对字符串格式化的 API,并在 Python 3.1 中开始弃用 ``%`` 字符串运算符。"
768
775
769
776
#: ../../whatsnew/3.0.rst:507
770
777
msgid ""
771
778
":ref:`pep-3105`. This is now a standard feature and no longer needs to be "
772
779
"imported from :mod:`__future__`. More details were given above."
773
- msgstr ""
780
+ msgstr ":ref:`pep-3105`。 现在这已是一个标准特性而不再需要从 :mod:`__future__` 导入。 更多详情见上文。 "
774
781
775
782
#: ../../whatsnew/3.0.rst:510
776
783
msgid ""
777
784
":ref:`pep-3110`. The :keyword:`except` *exc* :keyword:`!as` *var* syntax is"
778
785
" now standard and :keyword:`!except` *exc*, *var* is no longer supported. "
779
786
"(Of course, the :keyword:`!as` *var* part is still optional.)"
780
787
msgstr ""
788
+ ":ref:`pep-3110`。 现在 :keyword:`except` *exc* :keyword:`!as` *var* 语法已成为标准而 "
789
+ ":keyword:`!except` *exc*, *var* 不再受到支持。 (当然,:keyword:`!as` *var* 部分仍为可选项。)"
781
790
782
791
#: ../../whatsnew/3.0.rst:515
783
792
msgid ""
784
793
":ref:`pep-3112`. The ``b\" ...\" `` string literal notation (and its variants"
785
794
" like ``b'...'``, ``b\"\"\" ...\"\"\" ``, and ``br\" ...\" ``) now produces a "
786
795
"literal of type :class:`bytes`."
787
796
msgstr ""
797
+ ":ref:`pep-3112`。 现在 ``b\" ...\" `` 字节串字面值标记法(及其变化形式如 ``b'...'``, "
798
+ "``b\"\"\" ...\"\"\" `` 和 ``br\" ...\" `` 等将产生 :class:`bytes` 类型的字面值。"
788
799
789
800
#: ../../whatsnew/3.0.rst:519
790
801
msgid ""
@@ -833,6 +844,8 @@ msgid ""
833
844
"defining Python's\" numeric tower\" . Also note the new :mod:`fractions` "
834
845
"module which implements :class:`numbers.Rational`."
835
846
msgstr ""
847
+ ":ref:`pep-3141`。 :mod:`numbers` 模块是 ABC 的另一个新用例,它定义了 Python 的“数字层级塔”。 另请注意新的"
848
+ " :mod:`fractions` 模块,它实现了 :class:`numbers.Rational`。"
836
849
837
850
#: ../../whatsnew/3.0.rst:551
838
851
msgid "Library Changes"
@@ -1453,4 +1466,4 @@ msgstr ""
1453
1466
#: ../../whatsnew/3.0.rst:927
1454
1467
msgid ""
1455
1468
"For porting C extensions to Python 3.0, please see :ref:`cporting-howto`."
1456
- msgstr ""
1469
+ msgstr "有关如何将 C 扩展移植到 Python 3.0,请参阅 :ref:`cporting-howto`。 "