On Thu, Feb 3, 2022 at 3:53 PM Eric V. Smith
On 2/3/2022 12:15 PM, Victor Stinner wrote:
I'm working bottom-to-top: prepare PyObject and PyVarObject to become opaque, *and* top-to-bottom: prepare subclasses (structures "inheriting" from PyObject and PyVarObject) to become opaque like PyFrameObject.
IMO if PyObject* becomes a handle, the migration to the HPy API should be much easier.
It seems to me that moving PyObject* to be a handle leaves you in a place very similar to HPy. So why not just focus on making HPy suitable for developing C extensions, leave the existing C API alone, and eventually abandon the existing C API?
I think that's a possibility. I think it's a question for the team here whether that's the long-term goal that we want. If so we can make all of our work head towards that and help out HPy out as best we can.