mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Typo: fix inverted sense of statement (GH-23288) (GH-23512)
This commit is contained in:
parent
0aedcff34c
commit
dca61e770d
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue