"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> After all there's nothing wrong with and/or.
This is one reason 'no addition' got a relatively high rank in the vote.
Examples...
> telnet~1.py: 'DO' if cmd == DO else 'DONT',
versus cmd == DO and 'DO' or 'DONT'
I still stronly prefer this order and even slightly prefer this form. I
might even prefer a complete inversion of the order: x else y if c
'DO' else 'DONT' if cmd != DO
except that that does not chain at all well.
Terry J. Reedy
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com