[issue35431] Add a function for computing binomial coefficients to the math module
Tim Peters
report at bugs.python.org
Mon Jun 3 12:56:29 EDT 2019
Tim Peters <tim at python.org> added the comment:
Python needs a benevolent dictator ;-)
I'd be happy for Mark, Raymond, or me to play that role here. If it were me, I'd drop the k <= n requirement: both arguments must be non-negative integers. Because a combinatorial (not factorial-, and certainly not gamma-, based) definition of `comb()` is best suited for Python's general audience, and "number of ways to pick k things out of n without regard to order" makes clear sense for any pair of non-negative k and n. But anything beyond that does not.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35431>
_______________________________________
More information about the Python-bugs-list
mailing list