You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally PyRef was intended to be the single place to safely hold a reference to a Python object, so that other wrapper types (PyObject, PyList, etc.) could each simply have a PyRef field.
It would actually be simpler to just have these types hold a PyPtr and have a generic finalizer that decrefs whatever is in the ptr field (i.e. re-use pyref_finalize!).
The text was updated successfully, but these errors were encountered:
Originally
PyRef
was intended to be the single place to safely hold a reference to a Python object, so that other wrapper types (PyObject
,PyList
, etc.) could each simply have aPyRef
field.It would actually be simpler to just have these types hold a
PyPtr
and have a generic finalizer that decrefs whatever is in theptr
field (i.e. re-usepyref_finalize!
).The text was updated successfully, but these errors were encountered: