Skip to content

type('', (), {})__weakref__.__doc__ is inaccurate #150553

@jonathandung

Description

@jonathandung

Documentation

The __weakref__ descriptor on an instance of user-defined classes is a weak reference (singular instance of weakref.ReferenceType, preferring the unique one with no callback passed to the constructor if it exists and the most recently created one if not in case of multiple, and None otherwise. However, it is documented as a "list of weak references to the object".

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir
    No fields configured for issues without a type.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions