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

Skip to content

Commit 268a020

Browse files
committed
[po] auto sync bot
1 parent d0d4200 commit 268a020

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

reference/datamodel.po

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ msgstr "实例方法"
787787
msgid ""
788788
"An instance method object combines a class, a class instance and any "
789789
"callable object (normally a user-defined function)."
790-
msgstr ""
790+
msgstr "实例方法用于结合类、类实例和任何可调用对象 (通常为用户定义函数)。"
791791

792792
#: ../../reference/datamodel.rst:558
793793
msgid ""
@@ -798,19 +798,22 @@ msgid ""
798798
"the name of the module the method was defined in, or ``None`` if "
799799
"unavailable."
800800
msgstr ""
801+
"特殊的只读属性: :attr:`__self__` 为类实例对象本身,:attr:`__func__` 为函数对象;:attr:`__doc__` "
802+
"为方法的文档 (与 ``__func__.__doc__`` 作用相同);:attr:`~definition.__name__` 为方法名称 (与 "
803+
"``__func__.__name__`` 作用相同);:attr:`__module__` 为方法所属模块的名称,没有则为 ``None``。"
801804

802805
#: ../../reference/datamodel.rst:564
803806
msgid ""
804807
"Methods also support accessing (but not setting) the arbitrary function "
805808
"attributes on the underlying function object."
806-
msgstr ""
809+
msgstr "方法还支持获取 (但不能设置) 下层函数对象的任意函数属性。"
807810

808811
#: ../../reference/datamodel.rst:567
809812
msgid ""
810813
"User-defined method objects may be created when getting an attribute of a "
811814
"class (perhaps via an instance of that class), if that attribute is a user-"
812815
"defined function object or a class method object."
813-
msgstr ""
816+
msgstr "用户定义方法对象可在获取一个类的属性时被创建 (也可能通过该类的一个实例),如果该属性为用户定义函数对象或类方法对象。"
814817

815818
#: ../../reference/datamodel.rst:571
816819
msgid ""
@@ -819,6 +822,8 @@ msgid ""
819822
"attribute is the instance, and the method object is said to be bound. The "
820823
"new method's :attr:`__func__` attribute is the original function object."
821824
msgstr ""
825+
"当通过从类实例获取一个用户定义函数对象的方式创建一个实例方法对象时,类实例对象的 :attr:`__self__` "
826+
"属性即为该实例,并会绑定方法对象。该新建方法的 :attr:`__func__` 属性就是原来的函数对象。"
822827

823828
#: ../../reference/datamodel.rst:577
824829
msgid ""
@@ -827,6 +832,8 @@ msgid ""
827832
" object, except that the :attr:`__func__` attribute of the new instance is "
828833
"not the original method object but its :attr:`__func__` attribute."
829834
msgstr ""
835+
"当通过从类或实例获取另一个方法对象的方式创建一个用户定义方法对象时,其行为将等同于一个函数对象,例外的只有新实例的 :attr:`__func__` "
836+
"属性将不是原来的方法对象,而是其 :attr:`__func__` 属性。"
830837

831838
#: ../../reference/datamodel.rst:583
832839
msgid ""

0 commit comments

Comments
 (0)