[issue33083] math.factorial accepts non-integral Decimal instances

STINNER Victor report at bugs.python.org
Tue Jul 31 16:52:32 EDT 2018


STINNER Victor <vstinner at redhat.com> added the comment:

>> Is it really important to accept integral float?

> Possibly not, but acceptance of integral floats is deliberate, by-design, tested behaviour, so it at least deserves a deprecation period if we're going to get rid of it.

Ok. Let's keep it in that case ;-)

I also approved Pablo's PR.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33083>
_______________________________________


More information about the Python-bugs-list mailing list