[issue27832] fractions.Fraction with 3 arguments: error passes silently
Steven D'Aprano
report at bugs.python.org
Tue Aug 23 10:30:54 EDT 2016
Steven D'Aprano added the comment:
At the risk of muddying the waters even further, I'd like to make _normalize a public parameter in Python 3.7. There's an interesting operation you can do with fractions, the mediant:
https://en.wikipedia.org/wiki/Mediant_%28mathematics%29
http://www.mathteacherctk.com/blog/2011/02/06/mediant-fractions-and-simpsons-paradox/
It's easy to work with mediants provided you have a way to prevent fractions from being normalised automatically.
So I'm +1 on making _normalize a keyword-only argument for 3.6 as a first step.
----------
nosy: +steven.daprano
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27832>
_______________________________________
More information about the Python-bugs-list
mailing list