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
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
___
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
___
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
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