Skip to content

Weakly Referenceable Object #130062

Closed as not planned
Closed as not planned
@nybblista

Description

@nybblista

Is there a public API that allows me to check whether an object is weakly referenceable? I know that you can check the value of the tp_weaklistoffset slot or check for the Py_TPFLAGS_MANAGED_WEAKREF flag to get the answer, but what about having something like:

  • PyObject_WeaklyReferenceable or
  • PyWeakref_Referenceable

or whatever name fits the situation? This would encapsulate things and keep the extension module developer away from the internal stuff.

https://discuss.python.org/t/weakly-referencable-object/80248

Metadata

Metadata

Assignees

No one assigned

    Labels

    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