]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Rename class methods to instance methods (at least where user-visible)
authorGuido van Rossum <guido@python.org>
Tue, 16 Apr 1991 08:38:43 +0000 (08:38 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 16 Apr 1991 08:38:43 +0000 (08:38 +0000)
Objects/classobject.c

index daa8157426fe3a206febc624d6770fde605797f7..89cb3f7406b1b0ae5f9a8b131bbf013e852de89a 100644 (file)
@@ -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*/