[issue46780] Allow Fractions to return 1/6 for "0.17", "0.167", "0.1667", etc.

Mark Dickinson report at bugs.python.org
Thu Feb 17 13:48:53 EST 2022


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

One more example: what interval is implied by an input string of "1600"? Is it (1550, 1650)? Or (1595, 1605)? Or even (1599.5, 1600.5).

Sorry, I just don't see this working - there are two many arbitrary choices involved in guessing what interval the user intended. Much better to require the user to give that interval directly.

----------

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


More information about the Python-bugs-list mailing list