[issue37863] Speed up hash(fractions.Fraction)
Mark Dickinson
report at bugs.python.org
Thu Aug 15 14:34:11 EDT 2019
Mark Dickinson <dickinsm at gmail.com> added the comment:
> Indeed, I bet it would pay in `long_pow()` to add another test, under the `if (Py_SIZE(b) < 0)` branch, to skip the exponentiation part entirely when b is -1.
Agreed.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37863>
_______________________________________
More information about the Python-bugs-list
mailing list