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

Tal Einat report at bugs.python.org
Sat Jul 28 14:05:17 EDT 2018


Tal Einat <taleinat at gmail.com> added the comment:

So we keep things consistent by supporting Decimal and Fraction inputs, but raising ValueError if the value isn't a non-negative integer?

----------
nosy: +taleinat

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


More information about the Python-bugs-list mailing list