This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python 2.1b1 dumps core on list compr.
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: complex
Priority: normal Keywords:

Created on 2001-03-16 22:02 by complex, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Messages (1)
msg3896 - (view) Author: Viktor Ferenczi (complex) Date: 2001-03-16 22:02
Hi!

Python 2.1b1 dumps core when executing the following
statement:

print [[y for y in [x,x+1]] for x in [1,3]]

(Should print: [[1,2],[3,4]])

The problem may be related to variable scope resolving
code, because python reports "unknown scope for _[2] in
?(0)" before dumping core. This bug makes impossible to
use a list comprehension as the expression field of
another one.


-Complex-
History
Date User Action Args
2022-04-10 16:03:52adminsetgithub: 34168
2001-03-16 22:02:03complexcreate