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

No, I do not know such workaround. At best, you can analyze the code object and 
get the line number of the next instruction. It may be the line past the last 
line of the function call, or be equal to it if the function call is the part 
of complex expression or if you write several statements on the line. Then you 
need to analyze the sources.

The information about the first line of the multiline expression looks more 
useful than information about the last line. And it is more consistent with 
other cases. Maybe in future we will add information about the range of lines 
for every expression and statement (some steps was already made in this 
direction). But this is more complex change.

----------

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

Reply via email to