| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c17f1d3c-005e-fad4-0073-1a00705adb85 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D8B2:1A6FEB:24D7E95:324F442:6A543615 |
| html-safe-nonce | b04717775759b05e8f255698d20b065c8d6f727949296e0690fa6fb83087f5df |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEIyOjFBNkZFQjoyNEQ3RTk1OjMyNEY0NDI6NkE1NDM2MTUiLCJ2aXNpdG9yX2lkIjoiODM1NTgxNDMxMTU3MTI0MDQ2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cb5a2969d46c5c719ecaa996aaf6be42c45da83376e269a5fa617df9a53b4283 |
| hovercard-subject-tag | pull_request:236835338 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/11018/files |
| twitter:image | https://avatars.githubusercontent.com/u/14331571?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/14331571?s=400&v=4 |
| og:image:alt | Add tests specifying the behaviour of math.binomial(k, n):
when 0 <= k <= n;
when k > n;
when k or n are negative or non-integral;
when k or n are neither int nor float.
Implement ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/11018/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F11018%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F11018%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/11018/files |
| Reload | https://github.com/python/cpython/pull/11018/files |
| Reload | https://github.com/python/cpython/pull/11018/files |
| Please reload this page | https://github.com/python/cpython/pull/11018/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/11018/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.8k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.3k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
0
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| KellerFuchs | https://github.com/KellerFuchs |
| python:master | https://github.com/python/cpython/tree/master |
| KellerFuchs:math/binomial | https://github.com/KellerFuchs/cpython/tree/math/binomial |
|
Conversation
27
| https://github.com/python/cpython/pull/11018 |
|
Commits
20
| https://github.com/python/cpython/pull/11018/commits |
|
Checks
0
| https://github.com/python/cpython/pull/11018/checks |
|
Files changed
| https://github.com/python/cpython/pull/11018/files |
| Please reload this page | https://github.com/python/cpython/pull/11018/files |
|
bpo-35431: Add a function computing binomial numbers to the math module
| https://github.com/python/cpython/pull/11018/files#top |
|
Show all changes
20 commits
| https://github.com/python/cpython/pull/11018/files |
|
0651138
Add tests for math.binomial
KellerFuchs Dec 7, 2018
| https://github.com/python/cpython/pull/11018/commits/0651138bef7cafa6ebcc47828327647b42d83307 |
|
5665470
Update the spec for math.binomial to reject float inputs
KellerFuchs Dec 7, 2018
| https://github.com/python/cpython/pull/11018/commits/56654708947a4645d9553ecd5ca6d6f18a2bf73f |
|
7a1d05b
Refactor testBinomial{Value,Type}Errors
KellerFuchs Jan 28, 2019
| https://github.com/python/cpython/pull/11018/commits/7a1d05bb4e3080808eac0a154a0674a96cd883ec |
|
ff7084b
Rename math.binomial to math.combinations
KellerFuchs Jan 28, 2019
| https://github.com/python/cpython/pull/11018/commits/ff7084bbbd2529ce8381f7320563fd9f36fc5c19 |
|
4a1d3bd
📜🤖 Added by blurb_it.
blurb-it[bot] Jan 2, 2019
| https://github.com/python/cpython/pull/11018/commits/4a1d3bd5da4e09ca269bd54cd6fe85f498cba5e3 |
|
bbf79c6
implemented math.comb function
FR4NKESTI3N Jan 2, 2019
| https://github.com/python/cpython/pull/11018/commits/bbf79c687d5174ceb74884c9723320c3b23f6882 |
|
87f71ac
Rename math.comb to math.combinations
KellerFuchs Jan 28, 2019
| https://github.com/python/cpython/pull/11018/commits/87f71acc34892325cf2b4586571a074561ee493e |
|
dba9385
Merge testsuites for math.combinations
KellerFuchs Jan 28, 2019
| https://github.com/python/cpython/pull/11018/commits/dba93852c452ce610deb19b45afa6b815a6d43c3 |
|
eb8860c
fixup! 📜🤖 Added by blurb_it.
KellerFuchs Jan 28, 2019
| https://github.com/python/cpython/pull/11018/commits/eb8860c512698a4ec288049ad8837657c10f804c |
|
5169915
fixup! Rename math.comb to math.combinations
KellerFuchs Jan 28, 2019
| https://github.com/python/cpython/pull/11018/commits/5169915a1629df7d1a5e4826b066d72ae85e3655 |
|
4b5b1d3
lib/tests: math.combinations raises ValueError when k>n
KellerFuchs Jan 28, 2019
| https://github.com/python/cpython/pull/11018/commits/4b5b1d3080ba96b963479f2efaf0cc23716bd32b |
|
bd731e3
fixup! Add tests for math.binomial
KellerFuchs Jan 28, 2019
| https://github.com/python/cpython/pull/11018/commits/bd731e3a220b2903690267193e30bc7e8e46a887 |
|
ecb234e
math.combinations: Improve notation in comments and exceptions
KellerFuchs Jan 28, 2019
| https://github.com/python/cpython/pull/11018/commits/ecb234e6168c8cb76d672208de24af6037368f0e |
|
a1e6496
fixup! lib/tests: math.combinations raises ValueError when k>n
KellerFuchs Feb 1, 2019
| https://github.com/python/cpython/pull/11018/commits/a1e6496baf99155b6ff9477741c9a4c3d7ec074f |
|
d1e4964
Rename math.combinations to math.comb
KellerFuchs Feb 1, 2019
| https://github.com/python/cpython/pull/11018/commits/d1e49643f94fd3be58c958c5ac5356d7cde13c8e |
|
2a5b01e
math.comb: Fixup mistake in exception message
KellerFuchs Feb 1, 2019
| https://github.com/python/cpython/pull/11018/commits/2a5b01ea7244bb2bb5a889f60cce3cf35f89ab49 |
|
5b1532c
test_math: Rename testCombinations* to testComb*
KellerFuchs Feb 1, 2019
| https://github.com/python/cpython/pull/11018/commits/5b1532cb7ba03d1193907ae07fbf6fbb3305687e |
|
9c0a3d0
Changed name to comb in docs
FR4NKESTI3N Feb 2, 2019
| https://github.com/python/cpython/pull/11018/commits/9c0a3d0f5b9081a0d0c359a78733adafad6459c4 |
|
9f50476
Update 2019-01-02-19-48-23.bpo-35431.FhG6QA.rst
FR4NKESTI3N Feb 2, 2019
| https://github.com/python/cpython/pull/11018/commits/9f50476498b0b9c463d0d666e9a3e545cbfaef7c |
|
bf49e8a
math.comb: Document the OverflowError behaviour
KellerFuchs Feb 3, 2019
| https://github.com/python/cpython/pull/11018/commits/bf49e8ae23701efb52487deb5e280bd59affdc77 |
|
Clear filters
| https://github.com/python/cpython/pull/11018/files |
| Please reload this page | https://github.com/python/cpython/pull/11018/files |
| Please reload this page | https://github.com/python/cpython/pull/11018/files |
|
math.rst
| https://github.com/python/cpython/pull/11018/files#diff-cda4d855eb1739006a497bdead4e353aef302d1837ee7271ec5e4ba45f675221 |
|
test_math.py
| https://github.com/python/cpython/pull/11018/files#diff-a39b1e44e20048f5b8207fee83df00a2541a7f02716113e6243c33165e628cd5 |
|
2019-01-02-19-48-23.bpo-35431.FhG6QA.rst
| https://github.com/python/cpython/pull/11018/files#diff-f2d14dc3a39651326a8fca32dc65519bbc0b29366b6f0c398cb87661c55e0443 |
|
mathmodule.c.h
| https://github.com/python/cpython/pull/11018/files#diff-be28b04d80a581f81971deb34bb269241521f2aae3517b952fcfeba9f073bbf1 |
|
mathmodule.c
| https://github.com/python/cpython/pull/11018/files#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7 |
| Doc/library/math.rst | https://github.com/python/cpython/pull/11018/files#diff-cda4d855eb1739006a497bdead4e353aef302d1837ee7271ec5e4ba45f675221 |
|
View file
| https://github.com/KellerFuchs/cpython/blob/bf49e8ae23701efb52487deb5e280bd59affdc77/Doc/library/math.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/11018/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/11018/files#diff-cda4d855eb1739006a497bdead4e353aef302d1837ee7271ec5e4ba45f675221 |
| vadmium | https://github.com/vadmium |
| Apr 12, 2019 | https://github.com/python/cpython/pull/11018/files#r274849236 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/11018/files |
| KellerFuchs | https://github.com/KellerFuchs |
| Feb 5, 2019 | https://github.com/python/cpython/pull/11018/files#r254083501 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/11018/files |
| KellerFuchs | https://github.com/KellerFuchs |
| Feb 5, 2019 | https://github.com/python/cpython/pull/11018/files#r254083702 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @FR4NKESTI3N | https://github.com/FR4NKESTI3N |
| Please reload this page | https://github.com/python/cpython/pull/11018/files |
|
| https://github.com/python/cpython/pull/11018/files#diff-cda4d855eb1739006a497bdead4e353aef302d1837ee7271ec5e4ba45f675221 |
| Lib/test/test_math.py | https://github.com/python/cpython/pull/11018/files#diff-a39b1e44e20048f5b8207fee83df00a2541a7f02716113e6243c33165e628cd5 |
|
View file
| https://github.com/KellerFuchs/cpython/blob/bf49e8ae23701efb52487deb5e280bd59affdc77/Lib/test/test_math.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/11018/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/11018/files#diff-a39b1e44e20048f5b8207fee83df00a2541a7f02716113e6243c33165e628cd5 |
|
| https://github.com/python/cpython/pull/11018/files#diff-a39b1e44e20048f5b8207fee83df00a2541a7f02716113e6243c33165e628cd5 |
| Misc/NEWS.d/next/Library/2019-01-02-19-48-23.bpo-35431.FhG6QA.rst | https://github.com/python/cpython/pull/11018/files#diff-f2d14dc3a39651326a8fca32dc65519bbc0b29366b6f0c398cb87661c55e0443 |
|
View file
| https://github.com/KellerFuchs/cpython/blob/bf49e8ae23701efb52487deb5e280bd59affdc77/Misc/NEWS.d/next/Library/2019-01-02-19-48-23.bpo-35431.FhG6QA.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/11018/{{ revealButtonHref }} |
| Modules/clinic/mathmodule.c.h | https://github.com/python/cpython/pull/11018/files#diff-be28b04d80a581f81971deb34bb269241521f2aae3517b952fcfeba9f073bbf1 |
|
View file
| https://github.com/KellerFuchs/cpython/blob/bf49e8ae23701efb52487deb5e280bd59affdc77/Modules/clinic/mathmodule.c.h |
|
Open in desktop
| https://desktop.github.com |
| how customized files appear on GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/python/cpython/pull/11018/files |
| Modules/mathmodule.c | https://github.com/python/cpython/pull/11018/files#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7 |
|
View file
| https://github.com/KellerFuchs/cpython/blob/bf49e8ae23701efb52487deb5e280bd59affdc77/Modules/mathmodule.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/11018/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/11018/files#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7 |
|
| https://github.com/python/cpython/pull/11018/files#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7 |
|
| https://github.com/python/cpython/pull/11018/files#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7 |
|
| https://github.com/python/cpython/pull/11018/files#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |