allowing braces around suites

Alex Martelli aleaxit at yahoo.com
Sat Aug 28 12:55:23 EDT 2004


Isaac To <iketo2 at netscape.net> wrote:

> >>>>> "Alex" == Alex Martelli <aleaxit at yahoo.com> writes:
> 
>     Alex> list(a, b, c) instead of [a, b, c] would not be horribly
>     Alex> heavy syntax, I think.
> 
> On the other hand, [b*b for b in c] is too sweet to lose as well. :)

But list(b*b for b in c) is essentially the same thing, and already in
Python 2.4 it works just fine.


Alex



More information about the Python-list mailing list