typed_python
typed_python copied to clipboard
Clean up 'PyInstance' methods
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.