Message315288
| Author | jdemeyer |
|---|---|
| Recipients | jdemeyer, ncoghlan, rhettinger, terry.reedy |
| Date | 2018-04-14.13:59:05 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1523714345.25.0.682650639539.issue33261@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The only attributes that a method is guaranteed to have are __func__ and __self__ (which are the arguments passed to the MethodType constructor).
All other attributes are looked up through __func__ by the C version of the following Python code:
def __getattr__(self, attr):
return getattr(self.__func__, attr) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-04-14 13:59:05 | jdemeyer | set | recipients: + jdemeyer, rhettinger, terry.reedy, ncoghlan |
| 2018-04-14 13:59:05 | jdemeyer | set | messageid: <1523714345.25.0.682650639539.issue33261@psf.upfronthosting.co.za> |
| 2018-04-14 13:59:05 | jdemeyer | link | issue33261 messages |
| 2018-04-14 13:59:05 | jdemeyer | create | |