Python complaints
Fredrik Lundh
fredrik at pythonware.com
Wed Nov 24 04:23:27 EST 1999
Brad Knotwell <knotwell at ix.netcom.com> 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)
2
</F>
More information about the Python-list
mailing list