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

Introduction to python weakref #14

Open
1995parham opened this issue Mar 8, 2024 · 0 comments
Open

Introduction to python weakref #14

1995parham opened this issue Mar 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@1995parham
Copy link
Contributor

The weakref module allows the Python programmer to create weak references to objects.

A weak reference to an object is not enough to keep the object alive: when the only remaining references to a referent are weak references, garbage collection is free to destroy the referent and reuse its memory for something else. However, until the object is actually destroyed the weak reference may return the object even if there are no strong references to it.

@1995parham 1995parham added the enhancement New feature or request label Mar 8, 2024
@1995parham 1995parham self-assigned this Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant