bpo-39542: Exclude trashcan from the limited C API by vstinner · Pull Request #18362 · python/cpython (original) (raw)
Exclude trashcan mechanism from the limited C API: it requires access to
PyTypeObject and PyThreadState structure fields, whereas these structures
are opaque in the limited C API.
The trashcan mechanism never worked with the limited C API. Move it
from object.h to cpython/object.h.