diff options
author | Guido van Rossum <guido@python.org> | 1991-04-16 08:38:43 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-04-16 08:38:43 (GMT) |
commit | 569fce79010a4567af30b5e2523102f9e6983f98 (patch) | |
tree | 7cf2cde466cb472906f8683a35b24460922120a0 /Objects/classobject.c | |
parent | 864407d112152c95ac26cc31fc374b9a4a6147d8 (diff) | |
download | cpython-569fce79010a4567af30b5e2523102f9e6983f98.zip cpython-569fce79010a4567af30b5e2523102f9e6983f98.tar.gz cpython-569fce79010a4567af30b5e2523102f9e6983f98.tar.bz2 |
Rename class methods to instance methods (at least where user-visible)
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r-- | Objects/classobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index daa8157..89cb3f7 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -202,8 +202,8 @@ typeobject Instancetype = { }; -/* And finally, here are class method objects */ -/* (Really methods of instances) */ +/* And finally, here are instance method objects + (accidentally called class methods) */ typedef struct { OB_HEAD @@ -283,7 +283,7 @@ classmethod_dealloc(cm) typeobject Classmethodtype = { OB_HEAD_INIT(&Typetype) 0, - "class method", + "instance method", sizeof(classmethodobject), 0, classmethod_dealloc, /*tp_dealloc*/ |