PEP 308: I liked the original proposal better

Greg Ewing (using news.cis.dfn.de) me at privacy.net
Mon Feb 17 17:22:24 EST 2003


Jp Calderone wrote:

>>>>function('oh') * function(4) + function(3) * function('my') 
>>>>
> rar,  oh  is evaluated!
> rar,  4  is evaluated!
> rar,  3  is evaluated!
> rar,  my  is evaluated!
> 
>    See?


I think the point wasn't the order the operands are
evaluated in, but the order the operations are done in.
You already have to think out-of-order to understand
arithmetic expressions, so out-of-order thinking in
conditional expressions wouldn't be a big deal.

-- 
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