Skip to content

Rely less on PyRef #14

Closed
Closed
@cjdoris

Description

@cjdoris

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!).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions