Skip to content

Long-lived instances of internal classes (ManagedType and derived) should use PyObject instead of raw pointers #1562

Open
@lostmsu

Description

@lostmsu

We have trouble keeping proper refcount balance on internal objects. For short-lived references, the problem is solved with BorrowedReference and NewReference types. For long-lived references we have PyObject, that ensures safety, however we are not using it in internal classes. There's very little reason not to do so.

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