typed_python icon indicating copy to clipboard operation
typed_python copied to clipboard

Clean up 'PyInstance' methods

Open braxtonmckee opened this issue 2 years ago • 0 comments

PyInstance has a few core methods for determining if a PyObject* is a TP instance and converting between Instance, (void*, Type*), and PyObject* that could be more explicitly named and cleaned up.

In particular, we should have one API for taking a PyObject to an InstanceRef, and producing a PyObject from an InstanceRef.

braxtonmckee avatar Jan 30 '23 19:01 braxtonmckee