[issue23687] Stacktrace identifies wrong line in multiline list comprehension

2015-03-20 Thread SMRUTI RANJAN SAHOO
SMRUTI RANJAN SAHOO added the comment: the y should be replaced by none. so that will not show any error. i attached the image of my shell. -- nosy: +SMRUTI RANJAN SAHOO Added file: http://bugs.python.org/file38612/py2.JPG ___ Python tracker

[issue23687] Stacktrace identifies wrong line in multiline list comprehension

2015-03-20 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg238746 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23687 ___

[issue23687] Stacktrace identifies wrong line in multiline list comprehension

2015-03-20 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: Removed file: http://bugs.python.org/file38612/py2.JPG ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23687 ___

[issue23687] Stacktrace identifies wrong line in multiline list comprehension

2015-03-18 Thread R. David Murray
R. David Murray added the comment: This is a specific case of the more general problem discussed in issue 12458. -- nosy: +r.david.murray resolution: - duplicate stage: - resolved status: open - closed superseder: - Tracebacks should contain the first line of continuation lines

[issue23687] Stacktrace identifies wrong line in multiline list comprehension

2015-03-17 Thread Edward
New submission from Edward: This code: z = [ [Y for y in None ] for x in range(4) ] produces this stacktrace in both Python 2.7 and 3.4: Traceback (most recent call last): File /Users/edwsmith/dev/untitled4/test.py, line 7, in module ] for x in range(4) File