List comprehensions

Magnus L. Hetland mlh at vier.idi.ntnu.no
Tue Dec 21 12:20:27 EST 1999


hat at se-46.wpa.wtb.tue.nl (Albert Hofkamp) writes:

> PS I'd like to have a stronger visual separation between the result
>    expression, and the iterations and conditions, so '|' looks better to me
>    than ',' .
>    This is especially true if you do not start with an iteration, like in
> 
>    [ x>6, x>5 ]
> 
>    (Bonus-points for the people who understand what the result is
>    :-) )

How could you tell, as long as you haven't defined an order over, or
even a range for x? The result could be practically anything.

> 
> Albert

--

  Magnus
  Lie
  Hetland



More information about the Python-list mailing list