ways to declare empty set variable

Ben Finney bignose+hates-spam at benfinney.id.au
Tue Feb 12 20:44:26 EST 2008


bearophileHUGS at lycos.com writes:

> 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.

We seem to be saying the same thing in different ways.

-- 
 \       "Everyone is entitled to their own opinions, but they are not |
  `\         entitled to their own facts."  -- US Senator Pat Moynihan |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list