summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-06-01 23:06:38 (GMT)
committerGitHub <noreply@github.com>2023-06-01 23:06:38 (GMT)
commitd57ee813ebd496a3fd8118d7dc057d54c4af847e (patch)
tree0ca49a125b77d250c937925e7405f72fc1cad978 /Tools
parentd2be5c73ed520fb9d82a395f001eb9001711ed8f (diff)
downloadcpython-d57ee813ebd496a3fd8118d7dc057d54c4af847e.zip
cpython-d57ee813ebd496a3fd8118d7dc057d54c4af847e.tar.gz
cpython-d57ee813ebd496a3fd8118d7dc057d54c4af847e.tar.bz2
[3.12] gh-104614: Make Sure ob_type is Always Set Correctly by PyType_Ready() (gh-105122) (gh-105211)
When I added the relevant condition to type_ready_set_bases() in gh-103912, I had missed that the function also sets tp_base and ob_type (if necessary). That led to problems for third-party static types. We fix that here, by making those extra operations distinct and by adjusting the condition to be more specific. (cherry picked from commit 1469393) Co-authored-by: Eric Snow ericsnowcurrently@gmail.com
Diffstat (limited to 'Tools')
-rw-r--r--Tools/c-analyzer/cpython/ignored.tsv2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tools/c-analyzer/cpython/ignored.tsv b/Tools/c-analyzer/cpython/ignored.tsv
index e9056ae..4c40a04 100644
--- a/Tools/c-analyzer/cpython/ignored.tsv
+++ b/Tools/c-analyzer/cpython/ignored.tsv
@@ -424,6 +424,8 @@ Modules/_testcapi/watchers.c - num_code_object_destroyed_events -
Modules/_testcapi/watchers.c - pyfunc_watchers -
Modules/_testcapi/watchers.c - func_watcher_ids -
Modules/_testcapi/watchers.c - func_watcher_callbacks -
+Modules/_testcapimodule.c - BasicStaticTypes -
+Modules/_testcapimodule.c - num_basic_static_types_used -
Modules/_testcapimodule.c - ContainerNoGC_members -
Modules/_testcapimodule.c - ContainerNoGC_type -
Modules/_testcapimodule.c - FmData -