PEP-308 a "simplicity-first" alternative

Andrew Koenig ark at research.att.com
Tue Feb 11 18:24:42 EST 2003


holger> Inspired by "do the simplest thing that can possibly work" i
holger> now think that

holger>         x and y else z

holger> might just do it and avoid the need for a new construct.  

I thought so too when I first saw it, but now I'm less sure.
For example, what is the meaning of

        w and x and y else z

        w and x and y else z else a

        (x and y) else z

?

-- 
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark




More information about the Python-list mailing list