Odd floor-division corner case

Mark Lawrence breamoreboy at yahoo.co.uk
Thu Aug 14 13:31:31 EDT 2014


 From http://bugs.python.org/issue22198

 >>> -0.5 // float('inf')
-1.0

What should it be?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list