I had not known about math.comb() and math.perm() being added in 3.8. Those kinda feel to me like "not every one line function needs to be in the standard library." But I guess wiser people than me saw a reason they are needed.
On Sat, Dec 14, 2019, 3:00 PM Tim Peters <[email protected]> wrote: > Not really convoluted - it's the natural thing you'd do "by hand" > I wouldn't do recursion by hand? :-) On the third hand, we haven't yet sprayed enough combinatorial > functions all over creation to make much of a case for adding a module > dedicated to that area of discrete math. But we certainly _could_ ;-) > This feels like something that could happily start as a 3rd party package. Maybe it exists and I don't know about it. It would be convenient to have it all bundled in a namespace.
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/HYYABOJEDZ3BJONUS62S5M7YOFELY4WC/ Code of Conduct: http://python.org/psf/codeofconduct/
