[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

Serhiy Storchaka report at bugs.python.org
Fri Apr 1 00:49:37 EDT 2016


Serhiy Storchaka added the comment:

Agree with Raymond.

float.is_integer(x) is more efficient than x==int(x), but is this method used anywhere at all? It was added as a part of issue2224.

----------
nosy: +christian.heimes, serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26680>
_______________________________________


More information about the Python-bugs-list mailing list