Skip to content

Problems with method_cache on __getitem__ and __getattr__ #5

@alejandro-rivera

Description

@alejandro-rivera

Using method_cache on the getitem and getattr magic methods does not work as expected.

On python2, method_cache on getitem works fine, but not on getattr: no cached values are returned.

On python3, method_cache fails to return cached values on both getitem and getattr.
#4 adds a test that tries to highlight the issue. Hopefully a solution to this problem can be found (making this test pass!).

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions