cmp() on integers - is there guarantee of returning only +-1 or 0?
Paul Rubin
http
Mon Mar 20 08:00:08 EST 2006
Christoph Zwerschke <cito at online.de> writes:
> def sign(x): return (x>0)-(x<0)
Cute, I'll try to remember that one.
More information about the Python-list
mailing list