[issue35431] The math module should provide a function for computing binomial coefficients
kellerfuchs
report at bugs.python.org
Fri Dec 7 11:52:49 EST 2018
kellerfuchs <kellerfuchs at hashbang.sh> added the comment:
> I'd personally prefer that floats not be accepted; I think this was a misfeature of `factorial` that we shouldn't compound.
OK; I only went with that because I assumed there were Good Reasons© that factorial did it, but if rejecting integral floats isn't going to be a controversial move I'm also in favor of it.
Updating the PR momentarily to check that binomial rejects floats.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35431>
_______________________________________
More information about the Python-bugs-list
mailing list