Mark Dickinson <dicki...@gmail.com> added the comment:

> isn't `int()` the obvious way "to convert an integer-like thing to an actual 
> int"?

Well sorta, except that it's too lenient, letting in strings, floats, Decimal 
instances and the like. The strings isn't so much of an issue - it's more the 
silent truncation with the floats and Decimals that's problematic.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37831>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to