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

> I'd modify the optimization to be that we continue to seek the smallest 
> denominator, but in the case that multiple numerators would give ratios 
> within the computed interval then we choose the numerator among these that 
> gives the ratio closest to the input value.

Hmm. This is getting more DWIM-like (Do What I Mean) by the minute. :-)

What about for an input of "0.001"? Your current specification would give 
1/667, but I'm betting that you'd actually prefer 1/1000.

----------

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

Reply via email to