Skip to content

Cannot create weak reference to NamedTuple #672

@Qu4tro

Description

@Qu4tro

Hey there.

I'm creating this issue in the follow up of pydanny/cached-property#168 and pydanny/cached-property#137

As @althonos mentioned, NamedTuple doesn't have a __weakref__ slot. My question is here, if there's any implementation detail that prohibits NamedTuple to have it or if it's just missing.

You can use this repo as an example:
https://github.com/Qu4tro/cachedproperty_immutable_classes/

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions