Skip to content

Commit 9d09e17

Browse files
authored
Typo: fix inverted sense of statement (GH-23288)
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
1 parent c13d899 commit 9d09e17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/howto/descriptor.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ for whether the caller is an object or a class:
12251225
('F', 3)
12261226

12271227
This behavior is useful whenever the method only needs to have a class
1228-
reference and does rely on data stored in a specific instance. One use for
1228+
reference and does not rely on data stored in a specific instance. One use for
12291229
class methods is to create alternate class constructors. For example, the
12301230
classmethod :func:`dict.fromkeys` creates a new dictionary from a list of
12311231
keys. The pure Python equivalent is:

0 commit comments

Comments
 (0)