Ned Deily added the comment:

Thanks for the report.  Your example is of a set comprehension.  Set and 
dictionary comprehensions were Python 3.1 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.

https://docs.python.org/2/whatsnew/2.7.html#python-3-1-features

----------

_______________________________________
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