[issue21136] fractions.Fraction.__pow__ does unneeded renormalization
Mark Dickinson
report at bugs.python.org
Thu Apr 3 10:41:19 CEST 2014
Mark Dickinson added the comment:
> Does this work correctly in the case `Fraction(0, 1) ** -2`?
Looks like it doesn't. How about adding a `_skip_normalization` keyword argument to `Fraction.__new__` instead? That would ensure that any future changes made to `__new__` don't get skipped by this fast path.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21136>
_______________________________________
More information about the Python-bugs-list
mailing list