This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients FR4NKESTI3N, josh.r, jwilk, kellerfuchs, mark.dickinson, pablogsal, rhettinger, serhiy.storchaka, steven.daprano, tim.peters
Date 2019-06-01.21:19:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559423987.0.0.601596370725.issue35431@roundup.psfhosted.org>
In-reply-to
Content
Strongly prefer requiring 0 <= k <= n at first.  This is a programming language:  it will be applied to real problems, not to abstract proofs where some slop can be helpful in reducing the number of cases that need to be considered.

The Twitter fellow is certainly right that "0" is the clear answer to "how many 5-element subsets does have a 4-element set have?", but in the context of real problems it's more likely (to my eyes) that a programmer asking that question of `comb()` has gotten confused.  It certainly would have been "an error" in any programming use for `comb()` I've ever had.

Raymond, I'm not clear on what you mean by "alias".  You mean supplying the same function under more than one name?  I'd be -1 on that (where would it end?  the answer to every future name bikeshedding issue then would be "all of the above").  But +1 on, e.g., adding a doc index entry for "binomial" pointing to "comb".
History
Date User Action Args
2019-06-01 21:19:47tim.peterssetrecipients: + tim.peters, rhettinger, mark.dickinson, jwilk, steven.daprano, serhiy.storchaka, josh.r, pablogsal, kellerfuchs, FR4NKESTI3N
2019-06-01 21:19:47tim.peterssetmessageid: <1559423987.0.0.601596370725.issue35431@roundup.psfhosted.org>
2019-06-01 21:19:46tim.peterslinkissue35431 messages
2019-06-01 21:19:46tim.peterscreate