Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy