diff Python/ceval.c @ 224:e71b6fec86e5 legacy-trunk

Renamed class methods to instance methods (which they are)
author Guido van Rossum <guido@python.org>
date Sun, 05 May 1991 20:03:07 +0000
parents 4656452436e1
children 16f467717d7a
line wrap: on
line diff
--- a/Python/ceval.c	Sun May 05 20:00:36 1991 +0000
+++ b/Python/ceval.c	Sun May 05 20:03:07 1991 +0000
@@ -266,7 +266,7 @@
 		
 		case UNARY_CALL:
 			v = POP();
-			if (is_classmethodobject(v) || is_funcobject(v))
+			if (is_instancemethodobject(v) || is_funcobject(v))
 				x = call_function(v, (object *)NULL);
 			else
 				x = call_builtin(v, (object *)NULL);
@@ -331,7 +331,7 @@
 		case BINARY_CALL:
 			w = POP();
 			v = POP();
-			if (is_classmethodobject(v) || is_funcobject(v))
+			if (is_instancemethodobject(v) || is_funcobject(v))
 				x = call_function(v, w);
 			else
 				x = call_builtin(v, w);
@@ -1134,9 +1134,9 @@
 	object *newlocals, *newglobals;
 	object *co, *v;
 	
-	if (is_classmethodobject(func)) {
-		object *self = classmethodgetself(func);
-		func = classmethodgetfunc(func);
+	if (is_instancemethodobject(func)) {
+		object *self = instancemethodgetself(func);
+		func = instancemethodgetfunc(func);
 		if (arg == NULL) {
 			arg = self;
 		}