Christopher Barker wrote: > On Sat, Feb 19, 2022 at 6:31 AM Damian Shaw damian.peter.s...@gmail.com > wrote: > > That sounds like a lot of extra checks to put on "/" > > This isn’t about the division — it’s about the literal.
No, it's about the division. Not about the literal. Sorry I was unclear. I don't want 1e200 to become an int, I meant the division could be as "semi-heroic" (as Tim put it) as the int/int division. That is, when it notices the overflow, instead of just raising the error it could check whether the float is an integer and provide the result that way. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/UYT3CJSSWKKPRULRTJF2B5CII4NCNIE2/ Code of Conduct: http://python.org/psf/codeofconduct/