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

Skip to content

Commit f30cbd2

Browse files
committed
[po] auto sync bot
1 parent 18f5b78 commit f30cbd2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

reference/datamodel.po

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2109,30 +2109,35 @@ msgid ""
21092109
" the normal mechanism (i.e. store the value in the instance dictionary). "
21102110
"*name* is the attribute name, *value* is the value to be assigned to it."
21112111
msgstr ""
2112+
"此方法在一个属性被尝试赋值时被调用。这个调用会取代正常机制(即将值保存到实例字典)。 *name* 为属性名称, *value* 为要赋给属性的值。"
21122113

21132114
#: ../../reference/datamodel.rst:1532
21142115
msgid ""
21152116
"If :meth:`__setattr__` wants to assign to an instance attribute, it should "
21162117
"call the base class method with the same name, for example, "
21172118
"``object.__setattr__(self, name, value)``."
21182119
msgstr ""
2120+
"如果 :meth:`__setattr__` 想要赋值给一个实例属性,它应该调用同名的基类方法,例如 "
2121+
"``object.__setattr__(self, name, value)``。"
21192122

21202123
#: ../../reference/datamodel.rst:1539
21212124
msgid ""
21222125
"Like :meth:`__setattr__` but for attribute deletion instead of assignment. "
21232126
"This should only be implemented if ``del obj.name`` is meaningful for the "
21242127
"object."
21252128
msgstr ""
2129+
"类似于 :meth:`__setattr__` 但其作用为删除而非赋值。此方法应该仅在 ``del obj.name`` 对于该对象有意义时才被实现。"
21262130

21272131
#: ../../reference/datamodel.rst:1545
21282132
msgid ""
21292133
"Called when :func:`dir` is called on the object. A sequence must be "
21302134
"returned. :func:`dir` converts the returned sequence to a list and sorts it."
21312135
msgstr ""
2136+
"此方法会在对相应对象调用 :func:`dir` 时被调用。返回值必须为一个序列。 :func:`dir` 会把返回的序列转换为列表并对其排序。"
21322137

21332138
#: ../../reference/datamodel.rst:1550
21342139
msgid "Customizing module attribute access"
2135-
msgstr ""
2140+
msgstr "自定义模块属性访问"
21362141

21372142
#: ../../reference/datamodel.rst:1557
21382143
msgid ""

0 commit comments

Comments
 (0)