]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[doc] Mention __slots__ behavior in weakref.rst (GH-21061)
authorJakub Stasiak <jakub@stasiak.at>
Wed, 6 Oct 2021 18:23:02 +0000 (20:23 +0200)
committerGitHub <noreply@github.com>
Wed, 6 Oct 2021 18:23:02 +0000 (20:23 +0200)
commitb24b47e64355224c1bf4e46ed7c4d9f7df4e6f09
tree96459b51159feb1440ec1e9e9e1c8f4387fb40f0
parent682aecfdeba481c876bfc9f3796c635bd5b5df50
[doc] Mention __slots__ behavior in weakref.rst (GH-21061)

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>
Doc/library/weakref.rst