Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support weak references #20

Open
avish opened this issue Feb 4, 2018 · 0 comments
Open

Support weak references #20

avish opened this issue Feb 4, 2018 · 0 comments

Comments

@avish
Copy link

avish commented Feb 4, 2018

We ran into an issue trying to create weak references to LRU objects: the current implementation of LRU does not support weak references. It would be straightforward to implement according to the guidelines from https://python.readthedocs.io/en/v2.7.2/extending/newtypes.html#weak-reference-support, and would make the LRU class more usable in advanced scenarios, such as monitoring transient caches without keeping a hard reference to them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant