This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author woo yoo
Recipients docs@python, woo yoo
Date 2016-12-21.09:08:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1482311332.86.0.69129698975.issue29032@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation of instance methods confused me, it classifies methods into two types:the one is retrieved by an instance of a class, the other is created by retrieving a method from a class or instance.

According to the description,

>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  __self__ attribute of the more complex methods is a class. How does this happen? Is this description incorrect?
History
Date User Action Args
2016-12-21 09:08:52woo yoosetrecipients: + woo yoo, docs@python
2016-12-21 09:08:52woo yoosetmessageid: <1482311332.86.0.69129698975.issue29032@psf.upfronthosting.co.za>
2016-12-21 09:08:52woo yoolinkissue29032 messages
2016-12-21 09:08:52woo yoocreate