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

Skip to content

Commit fd0e6a3

Browse files
committed
[po] auto sync bot
1 parent 0944553 commit fd0e6a3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

reference/datamodel.po

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,12 @@ msgid ""
10941094
"found in the documentation accompanying the 2.3 release at "
10951095
"https://www.python.org/download/releases/2.3/mro/."
10961096
msgstr ""
1097+
"自定义类这种类型一般通过类定义来创建 (参见 :ref:`class` "
1098+
"一节)。每个类都有通过一个字典对象实现的独立命名空间。类属性引用会被转化为在此字典中查找,例如 ``C.x`` 会被转化为 "
1099+
"``C.__dict__[\"x\"]`` "
1100+
"(不过也存在一些钩子对象以允许其他定位属性的方式)。当在其中未发现某个属性名称时,会继续在基类中查找。这种基类查找使用 C3 方法解析顺序,即使存在 "
1101+
"'钻石形' 继承结构即有多条继承路径连到一个共同祖先也能保持正确的行为。有关 Python 使用的 C3 MRO 的详情可查看配合 2.3 版发布的文档"
1102+
" https://www.python.org/download/releases/2.3/mro/."
10971103

10981104
#: ../../reference/datamodel.rst:769
10991105
msgid ""
@@ -1105,6 +1111,9 @@ msgid ""
11051111
"attributes retrieved from a class may differ from those actually contained "
11061112
"in its :attr:`~object.__dict__`."
11071113
msgstr ""
1114+
"当一个类属性引用 (假设类名为 :class:`C`) 会产生一个类方法对象时,它将转化为一个 :attr:`__self__` 属性为 "
1115+
":class:`C` 的实例方法对象。当其会产生一个静态方法对象时,它将转化为该静态方法对象所封装的对象。从类的 "
1116+
":attr:`~object.__dict__` 所包含内容以外获取属性的其他方式请参看 :ref:`descriptors` 一节。"
11081117

11091118
#: ../../reference/datamodel.rst:779
11101119
msgid ""

0 commit comments

Comments
 (0)