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

James J. Besemer jb at cascade-sys.com
Fri Feb 14 15:47:03 EST 2003


Chermside, Michael wrote:
> 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.

Hear! Hear!

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