mirror of
https://github.com/python/cpython.git
synced 2026-06-02 01:29:52 -04:00
5250a03133
When builtin static types are initialized for a subinterpreter, various "tp" slots have already been inherited (for the main interpreter). This was interfering with the logic in add_operators() (in Objects/typeobject.c), causing a wrapper to get created when it shouldn't. This change fixes that by preserving the original data from the static type struct and checking that.
Source files for various builtin objects