]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Typo: fix inverted sense of statement (GH-23288)
authorbasak <robie@justgohome.co.uk>
Wed, 25 Nov 2020 14:12:17 +0000 (14:12 +0000)
committerGitHub <noreply@github.com>
Wed, 25 Nov 2020 14:12:17 +0000 (06:12 -0800)
Looks like a "not" was inadvertently omitted in commit e6a7ea4.
Classmethods are useful when data stored in specific instances are *not*
needed.

Automerge-Triggered-By: GH:JulienPalard
Doc/howto/descriptor.rst

index bc741c738b98dac3b62d5cf9551e596cfe63dbcb..ab5a573c6a06d10b704baeaeea6efc9a531317b7 100644 (file)
@@ -1225,7 +1225,7 @@ for whether the caller is an object or a class:
     ('F', 3)
 
 This behavior is useful whenever the method only needs to have a class
-reference and does rely on data stored in a specific instance.  One use for
+reference and does not rely on data stored in a specific instance.  One use for
 class methods is to create alternate class constructors.  For example, the
 classmethod :func:`dict.fromkeys` creates a new dictionary from a list of
 keys.  The pure Python equivalent is: