Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10d3bbb

Browse files
[po] auto sync
1 parent 2129dff commit 10d3bbb

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

library/ast.po

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,10 @@ msgid ""
954954
"the use of ``async`` and ``await`` as variable names. The lowest supported "
955955
"version is ``(3, 4)``; the highest is ``sys.version_info[0:2]``."
956956
msgstr ""
957+
"此外,将 ``feature_version`` 设为元组 ``(major, minor)`` 将会尝试使用该will attempt to "
958+
"parse using that Python 版本的语法来进行解析。 目前 ``major`` 必须等于 ``3``。 例如,设置 "
959+
"``feature_version=(3, 4)`` 将允许使用 ``async`` 和 ``await`` 作为变量名。 最低受支持版本为 ``(3,"
960+
" 4)``;最高则为 ``sys.version_info[0:2]``。"
957961

958962
#: ../../library/ast.rst:1553 ../../library/ast.rst:1592
959963
msgid ""
@@ -964,27 +968,30 @@ msgstr "足够复杂或是巨大的字符串可能导致Python解释器的崩溃
964968

965969
#: ../../library/ast.rst:1557
966970
msgid "Added ``type_comments``, ``mode='func_type'`` and ``feature_version``."
967-
msgstr ""
971+
msgstr "增加了 ``type_comments``, ``mode='func_type'`` 和 ``feature_version``。"
968972

969973
#: ../../library/ast.rst:1563
970974
msgid ""
971975
"Unparse an :class:`ast.AST` object and generate a string with code that "
972976
"would produce an equivalent :class:`ast.AST` object if parsed back with "
973977
":func:`ast.parse`."
974978
msgstr ""
979+
"反向解析一个 :class:`ast.AST` 对象并生成一个包含当再次使用 :func:`ast.parse` 解析时将产生同样的 "
980+
":class:`ast.AST` 对象的代码的字符串。"
975981

976982
#: ../../library/ast.rst:1568
977983
msgid ""
978984
"The produced code string will not necessarily be equal to the original code "
979985
"that generated the :class:`ast.AST` object (without any compiler "
980986
"optimizations, such as constant tuples/frozensets)."
981987
msgstr ""
988+
"所产生的代码字符串将不一定与生成 :class:`ast.AST` 对象的原始代码完全一致(不带任何编译器优化,例如常量元组/冻结集合等)。"
982989

983990
#: ../../library/ast.rst:1573
984991
msgid ""
985992
"Trying to unparse a highly complex expression would result with "
986993
":exc:`RecursionError`."
987-
msgstr ""
994+
msgstr "尝试反向解析一个高度复杂的表达式可能会导致 :exc:`RecursionError`。"
988995

989996
#: ../../library/ast.rst:1581
990997
msgid ""
@@ -1003,6 +1010,8 @@ msgid ""
10031010
"capable of evaluating arbitrarily complex expressions, for example involving"
10041011
" operators or indexing."
10051012
msgstr ""
1013+
"这可被用于安全地对包含不受信任来源的 Python 值的字符串进行求值而不必解析这些值本身。 "
1014+
"它并不能对任意的复杂表达式进行求值,例如涉及运算符或索引操作的表达式。"
10061015

10071016
#: ../../library/ast.rst:1596
10081017
msgid "Now allows bytes and set literals."

0 commit comments

Comments
 (0)