@@ -728,6 +728,9 @@ msgid ""
728
728
"inside a :func:`list` constructor, and in particular the loop control "
729
729
"variables are no longer leaked into the surrounding scope."
730
730
msgstr ""
731
+ "列表推导式不再支持 :samp:`[... for {var} in {item1}, {item2}, ...]` 这样的语法形式。 请改用 "
732
+ ":samp:`[... for {var} in ({item1}, {item2}, ...)]`。 还要注意列表推导式具有不同的句法:它们更像是 "
733
+ ":func:`list` 构造器内部用于生成器表达式的语法糖,具体来说就是循环控制变量将不会再泄漏到外层作用域中。"
731
734
732
735
#: ../../whatsnew/3.0.rst:444
733
736
msgid ""
@@ -766,35 +769,40 @@ msgid ""
766
769
" note that :func:`exec` no longer takes a stream argument; instead of "
767
770
"``exec(f)`` you can use ``exec(f.read())``."
768
771
msgstr ""
772
+ "移除的关键字: :func:`exec` 不再是一个关键字;它仍是一个函数。 (幸运的是该函数语法也在 2.x 中被接受。) 还要注意 "
773
+ ":func:`exec` 将不再接受流作为参数;你可以将原来的 ``exec(f)`` 改为使用 ``exec(f.read())``。"
769
774
770
775
#: ../../whatsnew/3.0.rst:465
771
776
msgid "Integer literals no longer support a trailing ``l`` or ``L``."
772
- msgstr ""
777
+ msgstr "整数字面值不再支持 ``l`` 或 ``L`` 后缀。 "
773
778
774
779
#: ../../whatsnew/3.0.rst:467
775
780
msgid "String literals no longer support a leading ``u`` or ``U``."
776
- msgstr ""
781
+ msgstr "字符串字面值不再支持 ``u`` 或 ``U`` 前缀。 "
777
782
778
783
#: ../../whatsnew/3.0.rst:469
779
784
msgid ""
780
785
"The :keyword:`from` *module* :keyword:`import` ``*`` syntax is only allowed "
781
786
"at the module level, no longer inside functions."
782
787
msgstr ""
788
+ ":keyword:`from` *module* :keyword:`import` ``*`` 语法仅允许在模块层级使用,不再允许出现于函数内部。"
783
789
784
790
#: ../../whatsnew/3.0.rst:472
785
791
msgid ""
786
792
"The only acceptable syntax for relative imports is :samp:`from .[{module}] "
787
793
"import {name}`. All :keyword:`import` forms not starting with ``.`` are "
788
794
"interpreted as absolute imports. (:pep:`328`)"
789
795
msgstr ""
796
+ "唯一可接受的相对导入语法为 :samp:`from .[{module}] import {name}`。 所有不以 ``.`` 开头的 "
797
+ ":keyword:`import` 形式都将被解读为绝对导入。 (:pep:`328`)"
790
798
791
799
#: ../../whatsnew/3.0.rst:476
792
800
msgid "Classic classes are gone."
793
- msgstr ""
801
+ msgstr "经典类已不复存在。 "
794
802
795
803
#: ../../whatsnew/3.0.rst:480
796
804
msgid "Changes Already Present In Python 2.6"
797
- msgstr ""
805
+ msgstr "已存在于 Python 2.6 中的改变 "
798
806
799
807
#: ../../whatsnew/3.0.rst:482
800
808
msgid ""
@@ -888,7 +896,7 @@ msgstr ""
888
896
msgid ""
889
897
":ref:`pep-3127`. As mentioned above, the new octal literal notation is the "
890
898
"only one supported, and binary literals have been added."
891
- msgstr ""
899
+ msgstr ":ref:`pep-3127`。 如上文所述,新的八进制字面值标记法是唯一受支持的形式,并增加了二进制字面值。 "
892
900
893
901
#: ../../whatsnew/3.0.rst:543
894
902
msgid ":ref:`pep-3129`."
@@ -936,7 +944,7 @@ msgstr ""
936
944
msgid ""
937
945
"Some modules were renamed because their old name disobeyed :pep:`8`, or for "
938
946
"various other reasons. Here's the list:"
939
- msgstr ""
947
+ msgstr "一些模块名称已被修改因为它们的旧名称不符合 :pep:`8`,或是出于各种其他理由。 具体列表如下: "
940
948
941
949
#: ../../whatsnew/3.0.rst:576
942
950
msgid "Old Name"