@@ -650,6 +650,9 @@ msgid ""
650
650
"inside a :func:`list` constructor, and in particular the loop control "
651
651
"variables are no longer leaked into the surrounding scope."
652
652
msgstr ""
653
+ "列表推导式不再支持 :samp:`[... for {var} in {item1}, {item2}, ...]` 这样的语法形式。 请改用 "
654
+ ":samp:`[... for {var} in ({item1}, {item2}, ...)]`。 还要注意列表推导式具有不同的句法:它们更像是 "
655
+ ":func:`list` 构造器内部用于生成器表达式的语法糖,具体来说就是循环控制变量将不会再泄漏到外层作用域中。"
653
656
654
657
#: ../../whatsnew/3.0.rst:444
655
658
msgid ""
@@ -688,35 +691,40 @@ msgid ""
688
691
" note that :func:`exec` no longer takes a stream argument; instead of "
689
692
"``exec(f)`` you can use ``exec(f.read())``."
690
693
msgstr ""
694
+ "移除的关键字: :func:`exec` 不再是一个关键字;它仍是一个函数。 (幸运的是该函数语法也在 2.x 中被接受。) 还要注意 "
695
+ ":func:`exec` 将不再接受流作为参数;你可以将原来的 ``exec(f)`` 改为使用 ``exec(f.read())``。"
691
696
692
697
#: ../../whatsnew/3.0.rst:465
693
698
msgid "Integer literals no longer support a trailing ``l`` or ``L``."
694
- msgstr ""
699
+ msgstr "整数字面值不再支持 ``l`` 或 ``L`` 后缀。 "
695
700
696
701
#: ../../whatsnew/3.0.rst:467
697
702
msgid "String literals no longer support a leading ``u`` or ``U``."
698
- msgstr ""
703
+ msgstr "字符串字面值不再支持 ``u`` 或 ``U`` 前缀。 "
699
704
700
705
#: ../../whatsnew/3.0.rst:469
701
706
msgid ""
702
707
"The :keyword:`from` *module* :keyword:`import` ``*`` syntax is only allowed "
703
708
"at the module level, no longer inside functions."
704
709
msgstr ""
710
+ ":keyword:`from` *module* :keyword:`import` ``*`` 语法仅允许在模块层级使用,不再允许出现于函数内部。"
705
711
706
712
#: ../../whatsnew/3.0.rst:472
707
713
msgid ""
708
714
"The only acceptable syntax for relative imports is :samp:`from .[{module}] "
709
715
"import {name}`. All :keyword:`import` forms not starting with ``.`` are "
710
716
"interpreted as absolute imports. (:pep:`328`)"
711
717
msgstr ""
718
+ "唯一可接受的相对导入语法为 :samp:`from .[{module}] import {name}`。 所有不以 ``.`` 开头的 "
719
+ ":keyword:`import` 形式都将被解读为绝对导入。 (:pep:`328`)"
712
720
713
721
#: ../../whatsnew/3.0.rst:476
714
722
msgid "Classic classes are gone."
715
- msgstr ""
723
+ msgstr "经典类已不复存在。 "
716
724
717
725
#: ../../whatsnew/3.0.rst:480
718
726
msgid "Changes Already Present In Python 2.6"
719
- msgstr ""
727
+ msgstr "已存在于 Python 2.6 中的改变 "
720
728
721
729
#: ../../whatsnew/3.0.rst:482
722
730
msgid ""
@@ -813,7 +821,7 @@ msgstr ""
813
821
msgid ""
814
822
":ref:`pep-3127`. As mentioned above, the new octal literal notation is the "
815
823
"only one supported, and binary literals have been added."
816
- msgstr ""
824
+ msgstr ":ref:`pep-3127`。 如上文所述,新的八进制字面值标记法是唯一受支持的形式,并增加了二进制字面值。 "
817
825
818
826
#: ../../whatsnew/3.0.rst:543
819
827
msgid ":ref:`pep-3129`."
@@ -861,7 +869,7 @@ msgstr ""
861
869
msgid ""
862
870
"Some modules were renamed because their old name disobeyed :pep:`8`, or for "
863
871
"various other reasons. Here's the list:"
864
- msgstr ""
872
+ msgstr "一些模块名称已被修改因为它们的旧名称不符合 :pep:`8`,或是出于各种其他理由。 具体列表如下: "
865
873
866
874
#: ../../whatsnew/3.0.rst:576
867
875
msgid "Old Name"