PEP 308: "then" "else" for deprecating "and" "or" side effect s

Chermside, Michael mchermside at ingdirect.com
Fri Feb 14 14:16:42 EST 2003


Stephen Horne writes:
> Just because it uses lazy evaluation doesn't mean it isn't a function.

I disagree. To me, the semantics of function call is well-defined
in Python. It works the same way for all functions, and that way
is to NOT do lazy evaluation. A form like  if(cond,A,B)  which looks
like a function except for using a keyword seems to me like it would
be confusing precisely BECAUSE it looks like a function, but it's
behavior is (subtly) different.

-- Michael Chermside





More information about the Python-list mailing list