[Python-bugs-list] [ python-Bugs-409232 ] Python 2.1b1 dumps core on list compr.

noreply@sourceforge.net noreply@sourceforge.net
Fri, 16 Mar 2001 14:05:08 -0800


Bugs item #409232, was updated on 2001-03-16 14:02
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=409232&group_id=5470

Category: Python Interpreter Core
Group: Trash
>Status: Deleted
Priority: 5
Submitted By: Viktor Ferenczi (complex)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python 2.1b1 dumps core on list compr.

Initial Comment:
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-

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=409232&group_id=5470