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.
E
Eric Snow committed
146939306adcff706ebddb047f7470d148125cdf
Parent: 3698fda
Committed by GitHub <noreply@github.com>
on 6/1/2023, 10:28:31 PM