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. -- http://mail.python.org/mailman/listinfo/python-list