Py3K idea: why not drop the colon?

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Fri Nov 10 16:54:02 CET 2006


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.

> The disadvantage is that the usual binary logical operators must
> exist and are spelled differently. (It uses C's '||' and '&&'.)

Do they have to be spelled differently? In Python, they don't have
to.

Regards,


Björn

-- 
BOFH excuse #115:

your keyboard's space bar is generating spurious keycodes.




More information about the Python-list mailing list