Author gvanrossum
Recipients JunyiXie, gvanrossum, petr.viktorin, shihai1991, vstinner
Date 2021-03-24.15:59:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
FWIW I have an idea that would allow code using e.g. &PyList_Type to continue to work, and even ABI compatible (though only in the main interpreter).

// In some header file

PyAPI_FUNC(PyHeapTypeObject *) PyList_GetType();

#define PyList_Type (PyList_GetType()->ht_type)

For the main interpreter we could make this return the address of PyList_Type.
Date User Action Args
2021-03-24 15:59:37gvanrossumsetrecipients: + gvanrossum, vstinner, petr.viktorin, shihai1991, JunyiXie
2021-03-24 15:59:37gvanrossumsetmessageid: <>
2021-03-24 15:59:37gvanrossumlinkissue40601 messages
2021-03-24 15:59:37gvanrossumcreate