set/dict comp in Py2.6

bearophileHUGS at bearophileHUGS at
Sat Oct 25 10:13:08 CEST 2008

I'd like to know why Python 2.6 doesn't have the syntax to create sets/
dicts of Python 3.0, like:

{x*x for x in xrange(10)}
{x:x*x for x in xrange(10)}


More information about the Python-list mailing list