From: Guido van Rossum Date: Tue, 16 Apr 1991 08:38:43 +0000 (+0000) Subject: Rename class methods to instance methods (at least where user-visible) X-Git-Tag: v0.9.8~981 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=569fce79010a4567af30b5e2523102f9e6983f98;p=thirdparty%2FPython%2Fcpython.git Rename class methods to instance methods (at least where user-visible) --- diff --git a/Objects/classobject.c b/Objects/classobject.c index daa8157426fe..89cb3f7406b1 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*/