Skip to content

Conversation

@jstasiak
Copy link
Contributor

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).

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).
@jstasiak
Copy link
Contributor Author

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.

@jstasiak
Copy link
Contributor Author

cc @vstinner

I'm happy to create a ticket on bugs.python.org if necessary.

@ambv ambv changed the title Mention __slots__ in weakref documentation [doc] Mention __slots__ behavior in weakref.rst Oct 6, 2021
@ambv ambv merged commit b24b47e into python:main Oct 6, 2021
@miss-islington
Copy link
Contributor

Thanks @jstasiak for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 6, 2021
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]>
@bedevere-bot
Copy link

GH-28772 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Oct 6, 2021
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 6, 2021
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]>
@bedevere-bot
Copy link

GH-28773 is a backport of this pull request to the 3.9 branch.

ambv pushed a commit that referenced this pull request Oct 6, 2021
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]>
ambv pushed a commit that referenced this pull request Oct 6, 2021
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]>
@ambv
Copy link
Contributor

ambv commented Oct 6, 2021

Dzięki, Jakub! ✨ 🍰 ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants