I am never going to complain about Python again

Steven D'Aprano steve+comp.lang.python at pearwood.info
Thu Oct 10 22:23:50 EDT 2013


On Thu, 10 Oct 2013 17:48:16 +0000, Neil Cerutti wrote:

> >>> 5.0 == abs(3 + 4j)
>  False

Did you maybe accidentally rebind abs? If not, what version of Python are 
you using?


[steve at ando ~]$ for a in 2.4 2.5 2.6 2.7 3.2 3.3 ; do
> python$a -c "print( 5.0 == abs(3 + 4j) )" ;
> done
True
True
True
True
True
True



-- 
Steven



More information about the Python-list mailing list