I give up... was: A = X > Y ? X : Y

Michal Wallace sabren at manifestation.com
Wed Feb 16 15:50:45 EST 2000


>Even easier:
>>>> x = 5
>>>> y = 20
>>>> a = x<y and x or y # a ? b : c --> a and b or c


:) yeah.. that post was from like a week ago, when we were
talking about a way to do that without the boolean operators...
Fredrik suggested that my IIF() routing could be made to
work across namespaces, and I've been trying to figure
it out ever since.. (well, at least somewhere in the back of
my mind...)

-Michal
http://www.sabren.com/





More information about the Python-list mailing list