mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-104614: Make Sure ob_type is Always Set Correctly by PyType_Ready() (gh-105122)
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.
This commit is contained in:
parent
3698fda06e
commit
146939306a
4 changed files with 128 additions and 17 deletions
|
|
@ -420,6 +420,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 -
|
||||
|
|
|
|||
|
Can't render this file because it has a wrong number of fields in line 4.
|
Loading…
Add table
Add a link
Reference in a new issue