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 David Radcliffe, FR4NKESTI3N, josh.r, jwilk, kellerfuchs, mark.dickinson, pablogsal, rhettinger, serhiy.storchaka, steven.daprano, tim.peters
Date 2019-06-03.02:27:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559528863.09.0.855921596654.issue35431@roundup.psfhosted.org>
In-reply-to
Content
I'm going to repeat part of an earlier comment :-)

"""
Please resist pointless feature creep.  The original report was about comb(n, k) for integer n and k with 0 <= k <= n and that's all.  Everyone who commented appeared to agree they'd find that useful.
"""

Why can't we take universal agreement for an initial answer? ;-)

Looking at what other packages do doesn't really interest me, unless they differ on the cases everyone agreed would be useful - they have different audiences than Python has.  Guess what Wolfram returns for

(-4) choose (-5)

Go ahead.  That's right:  -4.  Sheesh - I don't care who their audience is, _any_ code calling `choose` with those arguments would be far better served if the function complained.
History
Date User Action Args
2019-06-03 02:27:43tim.peterssetrecipients: + tim.peters, rhettinger, mark.dickinson, jwilk, steven.daprano, serhiy.storchaka, josh.r, pablogsal, kellerfuchs, FR4NKESTI3N, David Radcliffe
2019-06-03 02:27:43tim.peterssetmessageid: <1559528863.09.0.855921596654.issue35431@roundup.psfhosted.org>
2019-06-03 02:27:43tim.peterslinkissue35431 messages
2019-06-03 02:27:43tim.peterscreate