PEP308: Proposing function-call syntax

Neil Hodgson nhodgson at
Mon Feb 10 11:58:35 CET 2003

Anders J. Munch:

>     ifelse(condition, iftrue, iffalse)
> That is, use plain old function call notation, but with 'ifelse' being
> a keyword recognised by the interpreter, so that arguments are only
> evaluated as necessary.

   I'd like it tobe a completely normal built in function. That allows
inline use for cases where short circuit evaluation isn't needed. Those
cases that need to short circuit use explicit code. No new syntax.


More information about the Python-list mailing list