diff options
author | Guido van Rossum <guido@python.org> | 1991-05-05 20:03:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-05-05 20:03:07 (GMT) |
commit | e8122f19a09a761c563229098b14abfdcd8674d0 (patch) | |
tree | 181b61ea5a9c7a31d54837aff18eca5c70e3c4a1 /Python/ceval.c | |
parent | d4905454cc154b492bd6afed48694ae3c579345e (diff) | |
download | cpython-e8122f19a09a761c563229098b14abfdcd8674d0.zip cpython-e8122f19a09a761c563229098b14abfdcd8674d0.tar.gz cpython-e8122f19a09a761c563229098b14abfdcd8674d0.tar.bz2 |
Renamed class methods to instance methods (which they are)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index badfced..99570e9 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -266,7 +266,7 @@ eval_code(co, globals, locals, arg) 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 @@ eval_code(co, globals, locals, arg) 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 @@ call_function(func, arg) 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; } |