A = X > Y ? X : Y
Evan Simpson
evan at 4-am.com
Wed Feb 9 22:39:54 EST 2000
Bob Alexander <bobalex at home.com> wrote in message
news:00e401bf7332$4aea6ea0$74eb0b18 at stcla1.sfba.home.com...
> It can't be encapsulated into something that looks like a function call
> since Python doesn't support macros. Functions always evaluate all of
their
> arguments before invoking function code, so there is no way to evaluate
only
> one of the selected expressions.
Sure it does. They're called bytecodehacks :-) Even better, they are
*semantic* macros, and can achieve feats to which no mere syntactic macro
could aspire.
Cheers,
Evan @ digicool
More information about the Python-list
mailing list