allowing braces around suites
aleaxit at yahoo.com
Sat Aug 28 18:55:23 CEST 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.
More information about the Python-list