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 <tim.pet...@gmail.com> 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 -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/HYYABOJEDZ3BJONUS62S5M7YOFELY4WC/ Code of Conduct: http://python.org/psf/codeofconduct/