Jeroen Demeyer <j.deme...@ugent.be> added the comment:

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)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33261>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to