For review: PEP 308 - If-then-else expression

James J. Besemer jb at cascade-sys.com
Mon Feb 10 17:49:05 EST 2003


Tim Peters wrote:

>>This code works as written, but only by coincidence.
> 
> 
> You're pushing this too hard.  Pointing out examples of code that work fine,
> but wouldn't *if* you changed them, isn't a worthy exercise.

It does support Andrew's claim that programmers less skilled than you 
attempting to use the and/or idiom are likely to make a mistake.

And aren't MOST programmers in question less skilled than you?  ;o)

Of course, the fact that over half the examples posted in this thread 
contained clear errors is a stronger argument.

Regards

--jb


-- 
James J. Besemer		503-280-0838 voice
2727 NE Skidmore St.		503-280-0375 fax
Portland, Oregon 97211-6557	mailto:jb at cascade-sys.com
				http://cascade-sys.com	







More information about the Python-list mailing list