Title: Consider restoring _PyHASH_INF/BITS/MODULUS/IMAG as public · Issue #111389 · python/cpython · GitHub
Open Graph Title: Consider restoring _PyHASH_INF/BITS/MODULUS/IMAG as public · Issue #111389 · python/cpython
X Title: Consider restoring _PyHASH_INF/BITS/MODULUS/IMAG as public · Issue #111389 · python/cpython
Description: This is used to implement CPython-like hashing of numeric types e.g. in Sage or in gmpy2. Actually, the same info is available via sys.hash_info, so I don't see reasons to hide this in Python.h. See #106320 and #107026. Linked PRs gh-111...
Open Graph Description: This is used to implement CPython-like hashing of numeric types e.g. in Sage or in gmpy2. Actually, the same info is available via sys.hash_info, so I don't see reasons to hide this in Python.h. Se...
X Description: This is used to implement CPython-like hashing of numeric types e.g. in Sage or in gmpy2. Actually, the same info is available via sys.hash_info, so I don't see reasons to hide this in Python.h...
Opengraph URL: https://github.com/python/cpython/issues/111389
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consider restoring _PyHASH_INF/BITS/MODULUS/IMAG as public","articleBody":"This is used to implement CPython-like hashing of numeric types e.g. [in Sage](https://github.com/sagemath/sage/blob/07a2afd65fb4b0a1c9cbc43ede7d4a18c921a000/src/sage/libs/gmp/pylong.pyx#L35-L52) or [in gmpy2](https://github.com/aleaxit/gmpy/blob/master/src/gmpy2_hash.c). Actually, the same info is available via ``sys.hash_info``, so I don't see reasons to hide this in Python.h.\r\n\r\nSee #106320 and #107026.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-111418\n* gh-119214\n* gh-119334\n* gh-141236\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/skirpichev","@type":"Person","name":"skirpichev"},"datePublished":"2023-10-27T06:42:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/111389/cpython/issues/111389"}
| 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:dfc3258c-6ec9-9d2d-cf0f-6f218607d96d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9A0:37464F:44D1B1:616546:696A0B8E |
| html-safe-nonce | bfe29f2c9e18d16b03ba38675b326ec392bdfd264e443d32167b6f0146e24d86 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUEwOjM3NDY0Rjo0NEQxQjE6NjE2NTQ2OjY5NkEwQjhFIiwidmlzaXRvcl9pZCI6Ijg4MDE0NTk4ODYyNjA2MjAxNzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 08546d40983918cd988f0591c8dca640142a32c30f4429ae0916a50159d9362b |
| hovercard-subject-tag | issue:1964870219 |
| 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/111389/issue_layout |
| twitter:image | https://opengraph.githubassets.com/28bda9070828a583646c4cbf59936aa4bbc8d5820e30b43ac1fb2890ef379c22/python/cpython/issues/111389 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/28bda9070828a583646c4cbf59936aa4bbc8d5820e30b43ac1fb2890ef379c22/python/cpython/issues/111389 |
| og:image:alt | This is used to implement CPython-like hashing of numeric types e.g. in Sage or in gmpy2. Actually, the same info is available via sys.hash_info, so I don't see reasons to hide this in Python.h. Se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | skirpichev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width