Message344370
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. |
|
Date |
User |
Action |
Args |
2019-06-03 02:27:43 | tim.peters | set | recipients:
+ tim.peters, rhettinger, mark.dickinson, jwilk, steven.daprano, serhiy.storchaka, josh.r, pablogsal, kellerfuchs, FR4NKESTI3N, David Radcliffe |
2019-06-03 02:27:43 | tim.peters | set | messageid: <1559528863.09.0.855921596654.issue35431@roundup.psfhosted.org> |
2019-06-03 02:27:43 | tim.peters | link | issue35431 messages |
2019-06-03 02:27:43 | tim.peters | create | |
|