Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

See 09aaa88328a5083469b2682230c7f3c62942afab. The position of the AST node for 
decorated function and class was changed to the position of the first 
decorator. It was made to help inspect.getsource() for functions to include 
decorator lines in the result. But the position of `def` and `class` lines was 
lost.

----------
nosy: +christian.heimes, georg.brandl

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

Reply via email to