-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Explain circular references and how to break them #82942
Conversation
Sorry, ignore me :) |
"referent" means what's referred to, the target of the reference |
While I'm glad the example in RefCounted exists, it feels quite verbose. It may sound easy to shrug off the next time someone falls into the same pit with a "Well, it's actually written right here", but perhaps it could be written differently to be easier to digest. Perhaps a more visual code example? Could that be necessary? |
I expect most people won't read this description because The target audience for this description is someone who has encountered a circular reference problem and wants to find the cause and solution in the documentation. Previously, the documentation of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems good to me, other than the suggestion that I've left.
Also improves the documentation of `weakref`.
794205c
to
b2dcef4
Compare
Thanks! |
Closes #82882
RefCounted
weakref
behavior