Idiom for 'the lesser of the two'?

John Burton john.burton at
Fri Oct 18 22:30:16 CEST 2002

"Gordon Airport" <uce at> wrote in message
news:A6udnSqYRcfk-C2gXTWcqA at
> There's got to be something simple I'm missing...
> You obviously can't do
> a < b ? a : b
> and this
> a if a < b else b
> is a syntax error. I started playing with lambda functions
> but I didn't have any luck there either.


More information about the Python-list mailing list