Skip to content

Commit c8e6cbd

Browse files
[po] auto sync
1 parent fbaa2d8 commit c8e6cbd

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "83.06%", "updated_at": "2025-04-24T09:19:35Z"}
1+
{"translation": "83.08%", "updated_at": "2025-04-24T15:18:33Z"}

whatsnew/3.0.po

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,9 @@ msgid ""
650650
"inside a :func:`list` constructor, and in particular the loop control "
651651
"variables are no longer leaked into the surrounding scope."
652652
msgstr ""
653+
"列表推导式不再支持 :samp:`[... for {var} in {item1}, {item2}, ...]` 这样的语法形式。 请改用 "
654+
":samp:`[... for {var} in ({item1}, {item2}, ...)]`。 还要注意列表推导式具有不同的句法:它们更像是 "
655+
":func:`list` 构造器内部用于生成器表达式的语法糖,具体来说就是循环控制变量将不会再泄漏到外层作用域中。"
653656

654657
#: ../../whatsnew/3.0.rst:444
655658
msgid ""
@@ -688,35 +691,40 @@ msgid ""
688691
" note that :func:`exec` no longer takes a stream argument; instead of "
689692
"``exec(f)`` you can use ``exec(f.read())``."
690693
msgstr ""
694+
"移除的关键字: :func:`exec` 不再是一个关键字;它仍是一个函数。 (幸运的是该函数语法也在 2.x 中被接受。) 还要注意 "
695+
":func:`exec` 将不再接受流作为参数;你可以将原来的 ``exec(f)`` 改为使用 ``exec(f.read())``。"
691696

692697
#: ../../whatsnew/3.0.rst:465
693698
msgid "Integer literals no longer support a trailing ``l`` or ``L``."
694-
msgstr ""
699+
msgstr "整数字面值不再支持 ``l`` 或 ``L`` 后缀。"
695700

696701
#: ../../whatsnew/3.0.rst:467
697702
msgid "String literals no longer support a leading ``u`` or ``U``."
698-
msgstr ""
703+
msgstr "字符串字面值不再支持 ``u`` 或 ``U`` 前缀。"
699704

700705
#: ../../whatsnew/3.0.rst:469
701706
msgid ""
702707
"The :keyword:`from` *module* :keyword:`import` ``*`` syntax is only allowed "
703708
"at the module level, no longer inside functions."
704709
msgstr ""
710+
":keyword:`from` *module* :keyword:`import` ``*`` 语法仅允许在模块层级使用,不再允许出现于函数内部。"
705711

706712
#: ../../whatsnew/3.0.rst:472
707713
msgid ""
708714
"The only acceptable syntax for relative imports is :samp:`from .[{module}] "
709715
"import {name}`. All :keyword:`import` forms not starting with ``.`` are "
710716
"interpreted as absolute imports. (:pep:`328`)"
711717
msgstr ""
718+
"唯一可接受的相对导入语法为 :samp:`from .[{module}] import {name}`。 所有不以 ``.`` 开头的 "
719+
":keyword:`import` 形式都将被解读为绝对导入。 (:pep:`328`)"
712720

713721
#: ../../whatsnew/3.0.rst:476
714722
msgid "Classic classes are gone."
715-
msgstr ""
723+
msgstr "经典类已不复存在。"
716724

717725
#: ../../whatsnew/3.0.rst:480
718726
msgid "Changes Already Present In Python 2.6"
719-
msgstr ""
727+
msgstr "已存在于 Python 2.6 中的改变"
720728

721729
#: ../../whatsnew/3.0.rst:482
722730
msgid ""
@@ -813,7 +821,7 @@ msgstr ""
813821
msgid ""
814822
":ref:`pep-3127`. As mentioned above, the new octal literal notation is the "
815823
"only one supported, and binary literals have been added."
816-
msgstr ""
824+
msgstr ":ref:`pep-3127`。 如上文所述,新的八进制字面值标记法是唯一受支持的形式,并增加了二进制字面值。"
817825

818826
#: ../../whatsnew/3.0.rst:543
819827
msgid ":ref:`pep-3129`."
@@ -861,7 +869,7 @@ msgstr ""
861869
msgid ""
862870
"Some modules were renamed because their old name disobeyed :pep:`8`, or for "
863871
"various other reasons. Here's the list:"
864-
msgstr ""
872+
msgstr "一些模块名称已被修改因为它们的旧名称不符合 :pep:`8`,或是出于各种其他理由。 具体列表如下:"
865873

866874
#: ../../whatsnew/3.0.rst:576
867875
msgid "Old Name"

0 commit comments

Comments
 (0)