diff options
author | Christian Heimes <christian@python.org> | 2022-08-22 05:24:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 05:24:03 (GMT) |
commit | 53e6a9a7254bdcd0538580ba7d799cd453e2dca5 (patch) | |
tree | 4f0d59c00859637c6b16159559545f38f7f342a5 /Misc | |
parent | d8c7a1174cc182668085b10aab4049f6a2794c2f (diff) | |
download | cpython-53e6a9a7254bdcd0538580ba7d799cd453e2dca5.zip cpython-53e6a9a7254bdcd0538580ba7d799cd453e2dca5.tar.gz cpython-53e6a9a7254bdcd0538580ba7d799cd453e2dca5.tar.bz2 |
gh-96046: Initialize ht_cached_keys in PyType_Ready() (GH-96047)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2022-08-18-13-47-59.gh-issue-96046.5Hqbka.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-08-18-13-47-59.gh-issue-96046.5Hqbka.rst b/Misc/NEWS.d/next/Core and Builtins/2022-08-18-13-47-59.gh-issue-96046.5Hqbka.rst new file mode 100644 index 0000000..b8cb52d --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-08-18-13-47-59.gh-issue-96046.5Hqbka.rst @@ -0,0 +1,4 @@ +:c:func:`PyType_Ready` now initializes ``ht_cached_keys`` and performs +additional checks to ensure that type objects are properly configured. This +avoids crashes in 3rd party packages that don't use regular API to create +new types. |