NB: I wondered about about dict(one=1, two=2) - why not d = {one:1, two:2} ? Since you do not write L=list((1, 2)) either. These composed objects as basic building blocks make Python code so dense and beautiful, thus using "{}" means embracing the language's concept. -- http://mail.python.org/mailman/listinfo/python-list
- Re: Is there something similar to list comprehension in ... Patrick Sabin
- Re: Is there something similar to list comprehension in ... Paul Rudin
- Re: Is there something similar to list comprehension in ... Terry Reedy
- Re: Is there something similar to list comprehension in ... Andre Engels
- Re: Is there something similar to list comprehension in ... Dave Angel
- Re: Is there something similar to list comprehension in ... Michele Simionato
- Re: Is there something similar to list comprehensio... Tim Golden
- Re: Is there something similar to list comprehensio... Simon Brunning
- Re: Is there something similar to list comprehension in ... Stefan Behnel
- Re: Is there something similar to list comprehensio... Stefan Behnel
- Re: Is there something similar to list comprehension in ... DreiJane
- Re: Is there something similar to list comprehensio... Diez B. Roggisch
- Re: Is there something similar to list comprehensio... Steven D'Aprano