Py3K idea: why not drop the colon?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Fri Nov 10 12:36:56 EST 2006


In <4rjlkqFrlskqU1 at mid.individual.net>, Bjoern Schliessmann wrote:

> Neil Cerutti wrote:
>> On 2006-11-09, Bjoern Schliessmann
> 
>>> if color == red or blue or green:
>>>     return 'primary'
>>>
>>>:)
>  
>> The Inform 6* programming language supports the serial 'or' (and
>> 'and') and looks just like that.
> 
> Python also supports it.

No it doesn't -- look again at the example given above.  It's legal syntax
in Python but doesn't have the semantics implied by the example.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list