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

Skip to content

Commit d2185ad

Browse files
[po] auto sync
1 parent 3377aad commit d2185ad

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

library/dataclasses.po

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ msgstr "在这些生成的方法中使用的成员变量是使用 :pep:`526` 类
5050

5151
#: ../../library/dataclasses.rst:34
5252
msgid "will add, among other things, a :meth:`__init__` that looks like::"
53-
msgstr ""
53+
msgstr "将在添加的内容中包括如下所示的 :meth:`__init__`::"
5454

5555
#: ../../library/dataclasses.rst:41
5656
msgid ""
@@ -75,6 +75,9 @@ msgid ""
7575
"<variable annotation>`. With two exceptions described below, nothing in "
7676
":func:`dataclass` examines the type specified in the variable annotation."
7777
msgstr ""
78+
":func:`dataclass` 装饰器会检查类以查找 ``field``。 ``field`` 被定义为具有 :term:`类型标注 "
79+
"<variable annotation>` 的类变量。 除了下面描述的两个例外,在 :func:`dataclass` "
80+
"中没有什么东西会去检查在变量标注中所指定的类型。"
7881

7982
#: ../../library/dataclasses.rst:60
8083
msgid ""
@@ -90,6 +93,8 @@ msgid ""
9093
"decorator returns the same class that it is called on; no new class is "
9194
"created."
9295
msgstr ""
96+
":func:`dataclass` 装饰器将向类中添加各种“dunder”方法,如下所述。 "
97+
"如果所添加的方法已存在于类中,则行为将取决于下面所列出的参数。 装饰器会返回调用它的类本身;不会创建新的类。"
9398

9499
#: ../../library/dataclasses.rst:69
95100
msgid ""
@@ -268,6 +273,7 @@ msgid ""
268273
" field with a default value. This is true whether this occurs in a single "
269274
"class, or as a result of class inheritance."
270275
msgstr ""
276+
"如果具有默认值的字段之后存在没有默认值的字段,将会引发 :exc:`TypeError`。 无论此情况是发生在单个类中还是作为类继承的结果,都是如此。"
271277

272278
#: ../../library/dataclasses.rst:183
273279
msgid ""
@@ -499,6 +505,8 @@ msgid ""
499505
":exc:`TypeError`. If values in ``changes`` do not specify fields, raises "
500506
":exc:`TypeError`."
501507
msgstr ""
508+
"创建一个与 ``instance`` 的类型相同的新对象,用来自 ``changes`` 的值替换各个字段。 如果 ``instance`` "
509+
"不是数据类,则会引发 :exc:`TypeError`。 如果 ``changes`` 中的值没有指定字段,则会引发 :exc:`TypeError`。"
502510

503511
#: ../../library/dataclasses.rst:369
504512
msgid ""

library/xml.dom.pulldom.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,13 @@ msgid ""
120120
":func:`DOMEventStream.expandNode` method and switch to DOM-related "
121121
"processing."
122122
msgstr ""
123+
"由于文档是被当作“展平”的事件流来处理的,文档“树”会被隐式地遍历并且无论所需元素在树中的深度如何都会被找到。 "
124+
"换句话说,不需要考虑层级问题,例如文档节点的递归搜索等,但是如果元素的内容很重要,则有必要保留一些上下文相关的状态(例如记住任意给定点在文档中的位置)或者使用"
125+
" :func:`DOMEventStream.expandNode` 方法并切换到 DOM 相关的处理过程。"
123126

124127
#: ../../library/xml.dom.pulldom.rst:80 ../../library/xml.dom.pulldom.rst:85
125128
msgid "Subclass of :class:`xml.sax.handler.ContentHandler`."
126-
msgstr ""
129+
msgstr ":class:`xml.sax.handler.ContentHandler` 的子类。"
127130

128131
#: ../../library/xml.dom.pulldom.rst:90
129132
msgid ""

0 commit comments

Comments
 (0)