Python complaints

Fredrik Lundh fredrik at
Wed Nov 24 10:23:27 CET 1999

Brad Knotwell <knotwell at> wrote:
> Similarly, the only thing I've found missing from Python is C's
> ternary operator, it would be nice to be able to do something like 
> the following:
> def max(x,y): return ((x>y) ? x : y)

now that was one lousy example ;-)

Python 1.5.2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> max(1, 2)


More information about the Python-list mailing list