Message349489
| Author |
mark.dickinson |
| Recipients |
mark.dickinson, rhettinger, serhiy.storchaka, tim.peters, tomerv |
| Date |
2019年08月12日.19:22:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1565637727.78.0.176536493304.issue37831@roundup.psfhosted.org> |
| In-reply-to |
| Content |
> 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. |
|