[issue26452] Wrong line number attributed to comprehension expressions

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks much Greg for the details but I am closing this as fixed since there have been some improvements merged with issue12458 along with tests. The original issue reported regarding multi-line comprehension was fixed as I have tested it on https:/

[issue26452] Wrong line number attributed to comprehension expressions

2018-09-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think there have been some improvements merged with https://bugs.python.org/issue12458 . I am not sure if the patch covers more cases. I ran the tests attached in the patch and some of them cause RuntimeError in master. # bpo26452.py def f():

[issue26452] Wrong line number attributed to comprehension expressions

2016-03-01 Thread SilentGhost
Changes by SilentGhost : -- nosy: +haypo, serhiy.storchaka versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ ___ P

[issue26452] Wrong line number attributed to comprehension expressions

2016-02-27 Thread Greg Price
New submission from Greg Price: In a multi-line list comprehension (or dict or set comprehension), the code for the main expression of the comprehension is wrongly attributed to the *last* line of the comprehension, which might be several lines later. This makes for quite baffling tracebacks w