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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:0f3b15ef-47cb-0512-2421-48af61f35a45 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | E9A2:10E844:319DD3:4145C1:696B3C7E |
| html-safe-nonce | ae9c39fc2591202ffd1a8e51fe204542d57bfa78d81b84c51c13c7718bdce0bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUEyOjEwRTg0NDozMTlERDM6NDE0NUMxOjY5NkIzQzdFIiwidmlzaXRvcl9pZCI6IjcyNjIyODcyOTU1MDUxODU5MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 646bdb27e457251f38106ccc3a6aef0789e793ea2f5b8284610e4ceabef5fafb |
| hovercard-subject-tag | pull_request:417073380 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width