[issue35698] Division by 2 in statistics.median
STINNER Victor
report at bugs.python.org
Wed Jan 9 17:15:23 EST 2019
STINNER Victor <vstinner at redhat.com> added the comment:
> vstinner: The problem isn't the averaging, it's the type inconsistency.
>>> type(statistics.median([1]))
<class 'int'>
>>> type(statistics.median([1,2]))
<class 'float'>
Which consistency? :-)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35698>
_______________________________________
More information about the Python-bugs-list
mailing list