On 2/3/2022 12:15 PM, Victor Stinner wrote:
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'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.
Eric _______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/BWCNBP26BZU2SYLCBVCXXVBMYUTSHE27/ Code of Conduct: http://python.org/psf/codeofconduct/