ways to declare empty set variable

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Tue Feb 12 19:53:25 EST 2008


Ben Finney:
> Generator literals do not require the
> parens at all. However, the syntax of where the generator literal
> *appears* can make it necessary to explicitly group the expression
> using parens.

Have you taken a look at Boo?
In Python this isn't possible:
s = char for char in string.digits
You need ( ) there, while in Boo they aren't necessary there.

Bye,
bearophile



More information about the Python-list mailing list