Le mar. 14 avr. 2020 à 18:25, Ronald Oussoren email@example.com a écrit :
Making “PyObject” opaque will also affect the stable ABI because even types defined using the PyTypeSpec API embed a “PyObject” value in the structure defining the instance layout. It is easy enough to change this in a way that preserves source-code compatibility, but I’m not sure it is possible to avoid breaking the stable ABI.
Oh, that's a good point. I tracked this issue at: https://bugs.python.org/issue39573#msg366473
BTW. This will require growing the PyTypeSpec ABI a little, there are features you cannot implement using that API for example the buffer protocol.
I tracked this feature request at: https://bugs.python.org/issue40170#msg366474