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

Skip to content

Commit c2966df

Browse files
committed
[po] auto sync bot
1 parent db33efd commit c2966df

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

reference/datamodel.po

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,8 @@ msgid ""
842842
" itself, and its :attr:`__func__` attribute is the function object "
843843
"underlying the class method."
844844
msgstr ""
845+
"当通过从类或实例获取一个类方法对象的方式创建一个实例对象时,实例对象的 :attr:`__self__` 属性为该类本身,其 "
846+
":attr:`__func__` 属性为类方法对应的下层函数对象。"
845847

846848
#: ../../reference/datamodel.rst:588
847849
msgid ""
@@ -852,6 +854,9 @@ msgid ""
852854
"and ``x`` is an instance of :class:`C`, calling ``x.f(1)`` is equivalent to "
853855
"calling ``C.f(x, 1)``."
854856
msgstr ""
857+
"当一个实例方法对象被调用时,会调用对应的下层函数 (:attr:`__func__`),并将类实例 (:attr:`__self__`) "
858+
"插入参数列表的开头。例如,当 :class:`C` 是一个包含了 :meth:`f` 函数定义的类,而 ``x`` 是 :class:`C` "
859+
"的一个实例,则调用 ``x.f(1)`` 就等同于调用 ``C.f(x, 1)``。"
855860

856861
#: ../../reference/datamodel.rst:595
857862
msgid ""

0 commit comments

Comments
 (0)