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
Fix memory cycles in Weak*Dictionary #34383
Comments
There is a subtle bug in WeakValueDictionary and This does not break anything by itself, but: The trick is that deletions of a key/value of a item The minimal overhead solution would be to use a __del__ The solution I propose is to change the remove function This can lead to a silent change in behavior if the The attached patch makes a "weakref-patched.py" file It would make sense to add test units for memory cycles Keep on the good work. |
Logged In: YES Bumping the priority to 6 since It Would Be Good if Fred |
Logged In: YES Accepted with minor modifications as Lib/weakref.py revision |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: