-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
[doc] Mention __slots__ behavior in weakref.rst #21061
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
Conversation
It took me longer than I expected to figure out why a random class I dealt with didn't support weak references. I believe this addition will make the __slots__/weakref interaction more discoverable to people having troubles with this. (Before this patch __slots__ was not mentioned in weakref documentation even once).
cc'ing @mdickinson @pganssle @berkerpeksag as you were involved in some of the most recent changes in this file – apologies if I'm being a nag. Let me know if there's a better person to ask to review this. |
cc @vstinner I'm happy to create a ticket on bugs.python.org if necessary. |
It took me longer than I expected to figure out why a random class I dealt with didn't support weak references. I believe this addition will make the __slots__/weakref interaction more discoverable to people having troubles with this. (Before this patch __slots__ was not mentioned in weakref documentation even once). Co-authored-by: Łukasz Langa <[email protected]> (cherry picked from commit b24b47e) Co-authored-by: Jakub Stasiak <[email protected]>
GH-28772 is a backport of this pull request to the 3.10 branch. |
It took me longer than I expected to figure out why a random class I dealt with didn't support weak references. I believe this addition will make the __slots__/weakref interaction more discoverable to people having troubles with this. (Before this patch __slots__ was not mentioned in weakref documentation even once). Co-authored-by: Łukasz Langa <[email protected]> (cherry picked from commit b24b47e) Co-authored-by: Jakub Stasiak <[email protected]>
GH-28773 is a backport of this pull request to the 3.9 branch. |
It took me longer than I expected to figure out why a random class I dealt with didn't support weak references. I believe this addition will make the __slots__/weakref interaction more discoverable to people having troubles with this. (Before this patch __slots__ was not mentioned in weakref documentation even once). Co-authored-by: Łukasz Langa <[email protected]> (cherry picked from commit b24b47e) Co-authored-by: Jakub Stasiak <[email protected]>
It took me longer than I expected to figure out why a random class I dealt with didn't support weak references. I believe this addition will make the __slots__/weakref interaction more discoverable to people having troubles with this. (Before this patch __slots__ was not mentioned in weakref documentation even once). Co-authored-by: Łukasz Langa <[email protected]> (cherry picked from commit b24b47e) Co-authored-by: Jakub Stasiak <[email protected]>
Dzięki, Jakub! ✨ 🍰 ✨ |
It took me longer than I expected to figure out why a random class
I dealt with didn't support weak references. I believe this addition
will make the slots/weakref interaction more discoverable to people
having troubles with this. (Before this patch slots was not
mentioned in weakref documentation even once).