Ned Deily added the comment:

Thanks for the report.  Your example is of a set comprehension.  Set and 
dictionary comprehensions were Python 3.2 features backported to Python 2.7 for 
compatibility and thus had no existing Python 2 compatibility concerns.  If you 
try a similar example using list comprehensions, which have been around in 
Python 2 for a long time, you'll see there is a difference in behavior between 
Python 2 and 3, which is what under discussion in Issue5242.

----------
components:  -Windows
nosy: +ned.deily -steve.dower, tim.golden, zach.ware
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
title: Comprehension + eval doesn't work inside function definition -> Set 
comprehension + eval doesn't work inside function definition

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23714>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to