Skip to content

[3.9] [doc] Mention __slots__ behavior in weakref.rst (GH-21061) - #28773

Merged
ambv merged 1 commit into
python:3.9from
miss-islington:backport-b24b47e-3.9
Oct 6, 2021
Merged

[3.9] [doc] Mention __slots__ behavior in weakref.rst (GH-21061)#28773
ambv merged 1 commit into
python:3.9from
miss-islington:backport-b24b47e-3.9

Conversation

@miss-islington

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

Co-authored-by: Łukasz Langa lukasz@langa.pl
(cherry picked from commit b24b47e)

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

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>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@jstasiak and @ambv: Status check is done, and it's a success ✅ .

@ambv
ambv merged commit 4f161e6 into python:3.9 Oct 6, 2021
@miss-islington
miss-islington deleted the backport-b24b47e-3.9 branch October 6, 2021 18:52
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.

5 participants