Skip to content

[doc] Mention __slots__ behavior in weakref.rst - #21061

Merged
ambv merged 2 commits into
python:mainfrom
jstasiak:mention-slots-in-weakref-docs
Oct 6, 2021
Merged

[doc] Mention __slots__ behavior in weakref.rst#21061
ambv merged 2 commits into
python:mainfrom
jstasiak:mention-slots-in-weakref-docs

Conversation

@jstasiak

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

cc @vstinner

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

Comment thread Doc/library/weakref.rst Outdated
Comment thread Doc/library/weakref.rst Outdated
@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
Copy Markdown
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 <lukasz@langa.pl>
(cherry picked from commit b24b47e)

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
@bedevere-bot

Copy link
Copy Markdown

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 <lukasz@langa.pl>
(cherry picked from commit b24b47e)

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
@bedevere-bot

Copy link
Copy Markdown

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 <lukasz@langa.pl>
(cherry picked from commit b24b47e)

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
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 <lukasz@langa.pl>
(cherry picked from commit b24b47e)

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
@ambv

ambv commented Oct 6, 2021

Copy link
Copy Markdown
Contributor

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