]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[doc] Mention __slots__ behavior in weakref.rst (GH-21061) (GH-28773)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 6 Oct 2021 18:52:48 +0000 (11:52 -0700)
committerGitHub <noreply@github.com>
Wed, 6 Oct 2021 18:52:48 +0000 (20:52 +0200)
commit4f161e65a011f287227c944fad9987446644041f
tree675740874399c6d55e57386eae32856695b0e2dd
parent92018a08240308c5beef9ccc712bef5c2e582926
[doc] Mention __slots__ behavior in weakref.rst (GH-21061) (GH-28773)

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

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
Doc/library/weakref.rst