]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40609: Remove _Py_hashtable_t.key_size (GH-20060)
authorVictor Stinner <vstinner@python.org>
Wed, 13 May 2020 00:26:02 +0000 (02:26 +0200)
committerGitHub <noreply@github.com>
Wed, 13 May 2020 00:26:02 +0000 (02:26 +0200)
commitf9b3b582b86b9cce8d69ec7d03d716ec81c8264a
treeb64e8194712f6e43d8f17894bceaeb7e0ccbd6b8
parent9e2ca1742076169089b818d0883688a2ddd9964a
bpo-40609: Remove _Py_hashtable_t.key_size (GH-20060)

Rewrite _Py_hashtable_t type to always store the key as
a "const void *" pointer. Add an explicit "key" member to
_Py_hashtable_entry_t.

Remove _Py_hashtable_t.key_size member.

hash and compare functions drop their hash table parameter, and their
'key' parameter type becomes "const void *".
Include/internal/pycore_hashtable.h
Modules/_tracemalloc.c
Python/hashtable.c
Python/marshal.c