[issue22444] Floor divide should return int
Mark Dickinson
report at bugs.python.org
Mon Sep 22 19:29:15 CEST 2014
Mark Dickinson added the comment:
> If we take this route, what float('inf') // 1 and float('nan') // 1 should return?
Probably exactly the same as they do right now. I think there's an argument that `float('inf') // 1` "should have been" `float('inf')`. But I'm not sure there's much of a case for *changing* the current return value.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22444>
_______________________________________
More information about the Python-bugs-list
mailing list