[issue25974] Fix statistics.py after the Decimal.as_integer_ratio() change

Stefan Krah report at bugs.python.org
Tue Dec 29 08:46:59 EST 2015


Stefan Krah added the comment:

No, I haven't done any benchmarks. In a quick test type(x) == float
does not seem any faster than isinstance(x, float), so perhaps we
could reduce the try/except complexity.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25974>
_______________________________________


More information about the Python-bugs-list mailing list