Title: bpo-35431: Refactor math.comb() implementation. by serhiy-storchaka · Pull Request #13725 · python/cpython · GitHub
Open Graph Title: bpo-35431: Refactor math.comb() implementation. by serhiy-storchaka · Pull Request #13725 · python/cpython
X Title: bpo-35431: Refactor math.comb() implementation. by serhiy-storchaka · Pull Request #13725 · python/cpython
Description: It now accepts arbitrary index-likes objects, not just int. Fixed some subtle bugs which may be exposed when arguments are int subclasses with overridden __sub__, __lt__, etc. MemoryError is now always raised for too large min(k, n-k). Previously MemoryError or OverflowError could be raised depending on the value. Fixed leaks. Improved error messages. Cleaned up and optimized the code. Optimization is technical, not algorithmic. https://bugs.python.org/issue35431
Open Graph Description: It now accepts arbitrary index-likes objects, not just int. Fixed some subtle bugs which may be exposed when arguments are int subclasses with overridden __sub__, __lt__, etc. MemoryError is now al...
X Description: It now accepts arbitrary index-likes objects, not just int. Fixed some subtle bugs which may be exposed when arguments are int subclasses with overridden __sub__, __lt__, etc. MemoryError is now al...
Opengraph URL: https://github.com/python/cpython/pull/13725
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e9fce745-8136-443a-7131-907602a0132b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D44E:33B84F:38E2B0F:4E8094F:6A54B6D5 |
| html-safe-nonce | 74bfe0200e5f6adc33693183d26ccebf74c06c5d20107de9a99dbed167847963 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDRFOjMzQjg0RjozOEUyQjBGOjRFODA5NEY6NkE1NEI2RDUiLCJ2aXNpdG9yX2lkIjoiMzIwMzE1MTI2MzU1OTg5MDY0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 468a5add66af314adebe3d93a2bd970f26216a6ef172904afe183d48e19c10d3 |
| hovercard-subject-tag | pull_request:284277223 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/13725/files |
| twitter:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| og:image:alt | It now accepts arbitrary index-likes objects, not just int. Fixed some subtle bugs which may be exposed when arguments are int subclasses with overridden __sub__, __lt__, etc. MemoryError is now al... |
| 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 | 5d343e1152573ef294b28f54e4a14fb5fdb3a5a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width