[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator
Claudiu.Popa
report at bugs.python.org
Tue Apr 15 20:01:12 CEST 2014
Claudiu.Popa added the comment:
"- We added tests of decorated classes. The source of decorated classes does not include the decorators, which is different than the usual behavior of decorated functions. What is the correct behavior here?"
There is an open issue for this, http://bugs.python.org/issue1764286. It has a patch which uses inspect.unwrap in order to unwrap the decorated functions.
----------
nosy: +Claudiu.Popa
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21217>
_______________________________________
More information about the Python-bugs-list
mailing list