Title: C API: Consider adding a public PyLong_GCD() function · Issue #111139 · python/cpython · GitHub
Open Graph Title: C API: Consider adding a public PyLong_GCD() function · Issue #111139 · python/cpython
X Title: C API: Consider adding a public PyLong_GCD() function · Issue #111139 · python/cpython
Description: Feature or enhancement The private _PyLong_GCD() function was removed in Python 3.13: see PR #108429. @scoder asked what is the intended replacement for _PyLong_GCD(). I suppose that the replacement is to call math.gcd(). Is it worth it ...
Open Graph Description: Feature or enhancement The private _PyLong_GCD() function was removed in Python 3.13: see PR #108429. @scoder asked what is the intended replacement for _PyLong_GCD(). I suppose that the replacemen...
X Description: Feature or enhancement The private _PyLong_GCD() function was removed in Python 3.13: see PR #108429. @scoder asked what is the intended replacement for _PyLong_GCD(). I suppose that the replacemen...
Opengraph URL: https://github.com/python/cpython/issues/111139
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":" C API: Consider adding a public PyLong_GCD() function","articleBody":"# Feature or enhancement\r\n\r\nThe private _PyLong_GCD() function was removed in Python 3.13: see PR #108429.\r\n\r\n@scoder [asked](https://github.com/python/cpython/pull/108429#issuecomment-1772786659) what is the intended replacement for _PyLong_GCD(). I suppose that the replacement is to call ``math.gcd()``.\r\n\r\nIs it worth it to add a public PyLong_GCD() function to the C API? Is it commonly used?\r\n\r\nA code search for ``_PyLong_GCD`` is PyPI top 5,000 projects found 0 projects using it.\r\n\r\n@scoder: What is your use case for _PyLong_GCD()? Using ``math.gcd()`` doesn't solve your use case?\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-113887\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2023-10-20T21:22:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/111139/cpython/issues/111139"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:634460db-090f-32ac-03f4-4dfb669a7597 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E9A2:27FA04:57CC58:7B5F5B:696A24EE |
| html-safe-nonce | 08c80204688b8a119df50785a8ed065cc9858cc7f0d0fd3586b8590e2ff53ab0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUEyOjI3RkEwNDo1N0NDNTg6N0I1RjVCOjY5NkEyNEVFIiwidmlzaXRvcl9pZCI6IjU0MjUxNDM2NjA1OTgxNDIxOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d42e8bb8415a88b8d7cc022ef16942404642255b8356ccbae7876dcae7b1240b |
| hovercard-subject-tag | issue:1955028595 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/111139/issue_layout |
| twitter:image | https://opengraph.githubassets.com/23f5bd7732ed7232f605f0399fedf581ede961c934d454f90317059376bcc853/python/cpython/issues/111139 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/23f5bd7732ed7232f605f0399fedf581ede961c934d454f90317059376bcc853/python/cpython/issues/111139 |
| og:image:alt | Feature or enhancement The private _PyLong_GCD() function was removed in Python 3.13: see PR #108429. @scoder asked what is the intended replacement for _PyLong_GCD(). I suppose that the replacemen... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | a1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f472b8e6c7b3fdd5d0354972a3f4c516289bf0be |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width