<[EMAIL PROTECTED]> wrote:

>     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

Uh?  I thought part of the specs was that sign(0) is 0...


Alex
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to