def sign(n): return n and n/abs(n) or 0 Whoops... Make that
def sign(n): return n and n/abs(n) or 1 Skip -- http://mail.python.org/mailman/listinfo/python-list
def sign(n): return n and n/abs(n) or 0 Whoops... Make that
def sign(n): return n and n/abs(n) or 1 Skip -- http://mail.python.org/mailman/listinfo/python-list