PEP 308: Pep Update

Greg Ewing (using news.cis.dfn.de) me at privacy.net
Thu Feb 27 17:54:08 EST 2003


Norman Petry wrote:
> After reading the hundreds of postings on this topic, I still feel that
> the syntax shown in the original version of the PEP (x if C else y) is the
> only one with any real merit.  It offers many advantages:

This is an excellent set of arguments, and I think they
should be added to the PEP.

> 3) reuses existing keywords (if, else)

A minor correction: "else" is not currently a reserved
word, but that doesn't matter, since it can be a
non-reserved keyword for this purpose.

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg





More information about the Python-list mailing list