[issue19956] inspect.getsource(obj.foo) fails when foo is an injected method constructed from another method

Terry J. Reedy report at bugs.python.org
Sat Dec 14 04:59:09 CET 2013


Terry J. Reedy added the comment:

I do not think you have exactly identified a bug, certainly not one we would fix in an existing release. The behavior in more of an unintended consequence of separate decisions resulting from an unanticipated usage. I am not sure what, if anything, should be done. Changing the exception message could still be done in 3.4, but not making getsource recursive for bound methods.

----------
nosy: +terry.reedy
stage:  -> needs patch
type: behavior -> enhancement
versions: +Python 3.5 -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19956>
_______________________________________


More information about the Python-bugs-list mailing list