Title: bpo-40609: _Py_hashtable_t values become void* by vstinner · Pull Request #20065 · python/cpython · GitHub
Open Graph Title: bpo-40609: _Py_hashtable_t values become void* by vstinner · Pull Request #20065 · python/cpython
X Title: bpo-40609: _Py_hashtable_t values become void* by vstinner · Pull Request #20065 · python/cpython
Description: _Py_hashtable_t values become regular "void *" pointers. Add _Py_hashtable_entry_t.data member Remove _Py_hashtable_t.data_size member Remove _Py_hashtable_t.get_func member. It is no longer needed to specialize _Py_hashtable_get() for a specific value size, since all entries now have the same size (void*). Remove the following macros: _Py_HASHTABLE_GET() _Py_HASHTABLE_SET() _Py_HASHTABLE_SET_NODATA() _Py_HASHTABLE_POP() Rename _Py_hashtable_pop() to _Py_hashtable_steal() _Py_hashtable_foreach() callback now gets key and value rather than entry. Remove _Py_hashtable_value_destroy_func type. value_destroy_func callback now only has a single parameter: data (void*). https://bugs.python.org/issue40609
Open Graph Description: _Py_hashtable_t values become regular "void *" pointers. Add _Py_hashtable_entry_t.data member Remove _Py_hashtable_t.data_size member Remove _Py_hashtable_t.get_func member. It is ...
X Description: _Py_hashtable_t values become regular "void *" pointers. Add _Py_hashtable_entry_t.data member Remove _Py_hashtable_t.data_size member Remove _Py_hashtable_t.get_func member...
Opengraph URL: https://github.com/python/cpython/pull/20065
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ab4bca26-22d0-45de-4d90-b0b9f865b90c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DC08:3C7D7F:2591B7A:32E28BF:696ADDCF |
| html-safe-nonce | 5de412f88be9434f80c83a19dfee43fdc19ebe1f27a9193775c9d85e3a4810e0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzA4OjNDN0Q3RjoyNTkxQjdBOjMyRTI4QkY6Njk2QUREQ0YiLCJ2aXNpdG9yX2lkIjoiNzUyMTI4OTg3Mzc0Njc0NjgzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 765d7aae239472127eaadb1c47e367a802de8aec840544e62b569a0aa200952d |
| hovercard-subject-tag | pull_request:417073380 |
| 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/20065/files |
| twitter:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| og:image:alt | _Py_hashtable_t values become regular "void *" pointers. Add _Py_hashtable_entry_t.data member Remove _Py_hashtable_t.data_size member Remove _Py_hashtable_t.get_func member. It is ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 524a93f2c1f36522a3b4be4c110467ee4172245d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width