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

Skip to content

Commit 159cfc6

Browse files
[po] auto sync
1 parent b1eb8c6 commit 159cfc6

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

library/ast.po

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,39 +1013,44 @@ msgid ""
10131013
"starargs will be expanded to join the list of base classes, and kwargs will "
10141014
"be passed to the metaclass."
10151015
msgstr ""
1016+
"``starargs`` 和 ``kwargs`` 各为一个单独的节点,与在函数调用中的一致。 starargs 将被展开加入到基类的列表中,而 "
1017+
"kwargs 将被传给元类。"
10161018

10171019
#: ../../library/ast.rst:1802
10181020
msgid ""
10191021
"``body`` is a list of nodes representing the code within the class "
10201022
"definition."
1021-
msgstr ""
1023+
msgstr "``body`` 是一个由代表类定义内部代码的节点组成的列表。"
10221024

10231025
#: ../../library/ast.rst:1804
10241026
msgid "``decorator_list`` is a list of nodes, as in :class:`FunctionDef`."
1025-
msgstr ""
1027+
msgstr "``decorator_list`` 是一个节点的列表,与 :class:`FunctionDef` 中的一致。"
10261028

10271029
#: ../../library/ast.rst:1833
10281030
msgid "Async and await"
1029-
msgstr ""
1031+
msgstr "async 与 await"
10301032

10311033
#: ../../library/ast.rst:1837
10321034
msgid ""
10331035
"An ``async def`` function definition. Has the same fields as "
10341036
":class:`FunctionDef`."
1035-
msgstr ""
1037+
msgstr "一个 ``async def`` 函数定义。 具有与 :class:`FunctionDef` 相同的字段。"
10361038

10371039
#: ../../library/ast.rst:1843
10381040
msgid ""
10391041
"An ``await`` expression. ``value`` is what it waits for. Only valid in the "
10401042
"body of an :class:`AsyncFunctionDef`."
10411043
msgstr ""
1044+
"一个 ``await`` 表达式。 ``value`` 是它所等待的值。 仅在 :class:`AsyncFunctionDef` 的函数体内可用。"
10421045

10431046
#: ../../library/ast.rst:1876
10441047
msgid ""
10451048
"``async for`` loops and ``async with`` context managers. They have the same "
10461049
"fields as :class:`For` and :class:`With`, respectively. Only valid in the "
10471050
"body of an :class:`AsyncFunctionDef`."
10481051
msgstr ""
1052+
"``async for`` 循环和 ``async with`` 上下文管理器。 它们分别具有与 :class:`For` 和 "
1053+
":class:`With` 相同的字段。 仅在 :class:`AsyncFunctionDef` 的函数体内可用。"
10491054

10501055
#: ../../library/ast.rst:1881
10511056
msgid ""
@@ -1055,6 +1060,10 @@ msgid ""
10551060
" be singletons. Changes to one will be reflected in all other occurrences of"
10561061
" the same value (e.g. :class:`ast.Add`)."
10571062
msgstr ""
1063+
"当一个字符串由 :func:`ast.parse` 来解析时,所返回的树中的运算符节点 (为 :class:`ast.operator`, "
1064+
":class:`ast.unaryop`, :class:`ast.cmpop`, :class:`ast.boolop` 和 "
1065+
":class:`ast.expr_context` 的子类) 将均为单例对象。 对其中某一个 (例如 :class:`ast.Add`) "
1066+
"的修改将反映到同一个值所出现的其他位置上。"
10581067

10591068
#: ../../library/ast.rst:1889
10601069
msgid ":mod:`ast` Helpers"
@@ -1085,13 +1094,20 @@ msgid ""
10851094
"the ``type_ignores`` attribute of :class:`Module` (otherwise it is always an"
10861095
" empty list)."
10871096
msgstr ""
1097+
"如果给出 ``type_comments=True``,解析器会被修改以检查并返回 :pep:`484` 和 :pep:`526` 所描述的类型注释。 "
1098+
"这相当于将 :data:`ast.PyCF_TYPE_COMMENTS` 添加到传给 :func:`compile()` 的旗标中。 "
1099+
"这将报告针对未在正确放置类型注释的语法错误。 没有这个旗标,类型注释将被忽略,而指定 AST 节点上的 ``type_comment`` 字段将总是为"
1100+
" ``None``。 此外,``# type: ignore`` 注释的位置将作为 :class:`Module` 的 ``type_ignores``"
1101+
" 属性被返回(在其他情况下则总是为空列表)。"
10881102

10891103
#: ../../library/ast.rst:1909
10901104
msgid ""
10911105
"In addition, if ``mode`` is ``'func_type'``, the input syntax is modified to"
10921106
" correspond to :pep:`484` \"signature type comments\", e.g. ``(str, int) -> "
10931107
"List[str]``."
10941108
msgstr ""
1109+
"并且,如果 ``mode`` 为 ``'func_type'``,则输入语法会进行与 :pep:`484` \"签名类型注释\" 对应的修改,例如 "
1110+
"``(str, int) -> List[str]``。"
10951111

10961112
#: ../../library/ast.rst:1913
10971113
msgid ""

0 commit comments

Comments
 (0)