Message283724
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? |
|
Date |
User |
Action |
Args |
2016-12-21 09:08:52 | woo yoo | set | recipients:
+ woo yoo, docs@python |
2016-12-21 09:08:52 | woo yoo | set | messageid: <1482311332.86.0.69129698975.issue29032@psf.upfronthosting.co.za> |
2016-12-21 09:08:52 | woo yoo | link | issue29032 messages |
2016-12-21 09:08:52 | woo yoo | create | |
|