[issue5982] classmethod, staticmethod: expose wrapped function
Terry J. Reedy
report at bugs.python.org
Fri May 15 22:48:54 CEST 2009
Terry J. Reedy <tjreedy at udel.edu> added the comment:
Having to bind and unbind a classmethod to get at the function is
definitely a bit weird, and also susceptible to changing implementation,
but do you have a practical use case to motivate the effort needed?
In Py3, '__func__' replaced 'im_func', and that is the name to use if
the attribute is added. A change in 3.2 is at least as likely as a
change in 2.7.
----------
nosy: +tjreedy
versions: +Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5982>
_______________________________________
More information about the Python-bugs-list
mailing list