Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: mpd_as_integer() is used internally in the Decimal class. Do you have use cases for it outside of the Decimal class?
And the question was about using float.is_integer(). I have not found *any* sane example on GitHub. The most harmless is just a demo >>> x = 3.0 >>> print(x.is_integer()) True Other examples are so bad that make me angry. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue26680> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com