[docs] [issue29032] How does the __self__ attribute of method become a class rather a instance?

woo yoo report at bugs.python.org
Wed Dec 21 04:12:09 EST 2016


woo yoo added the comment:

The quotation section :

When an instance method object is created by retrieving a class method object from a class or instance, its __self__ attribute is the class itself, and its __func__ attribute is the function object underlying the class method.

The associated link is https://docs.python.org/3.6/reference/datamodel.html#the-standard-type-hierarchy ,which lies in the 'instance mthods' section.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29032>
_______________________________________


More information about the docs mailing list