[issue32968] Fraction modulo infinity should behave consistently with other numbers

Mark Dickinson report at bugs.python.org
Sat Aug 25 12:51:48 EDT 2018


Mark Dickinson <dickinsm at gmail.com> added the comment:

Sorry that I've taken so long to get back to this. I've just updated the PR, and I think it's ready to go. Looks like it does need you to update your GitHub username here in the "Your Details" section of the bugtracker, though; sorry about that.

> If we can't depend on that result, do you have any suggestions?

Yes: check that 1.0 // 1/10 equals 1.0 // 0.1, and similarly for %. I've made that change in the PR.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32968>
_______________________________________


More information about the Python-bugs-list mailing list