SIGN IN SIGN UP

[3.12] gh-105020: Share tp_bases and tp_mro Between Interpreters For All Static Builtin Types (gh-105115) (gh-105124)

In gh-103912 we added tp_bases and tp_mro to each PyInterpreterState.types.builtins entry.  However, doing so ignored the fact that both PyTypeObject fields are public API, and not documented as internal (as opposed to tp_subclasses).  We address that here by reverting back to shared objects, making them immortal in the process.
(cherry picked from commit 7be667d)

Co-authored-by: Eric Snow ericsnowcurrently@gmail.com
M
Miss Islington (bot) committed
c38ceb032d59d6c8f2006ab9a347d7e207f9f84e
Parent: 83c7386
Committed by GitHub <noreply@github.com> on 6/1/2023, 10:24:55 PM