From 681d79aaf397850778608f35585d091fa7fe370a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 18 Jul 1995 14:51:37 +0000 Subject: keyword arguments and faster calls --- Python/pythonrun.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 2268c71ad4..f0875454e2 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -430,7 +430,7 @@ run_node(n, filename, globals, locals) freetree(n); if (co == NULL) return NULL; - v = eval_code(co, globals, locals, (object *)NULL, (object *)NULL); + v = eval_code(co, globals, locals); DECREF(co); return v; } @@ -462,7 +462,7 @@ run_pyc_file(fp, filename, globals, locals) return NULL; } co = (codeobject *)v; - v = eval_code(co, globals, locals, (object *)NULL, (object *)NULL); + v = eval_code(co, globals, locals); DECREF(co); return v; } @@ -603,16 +603,9 @@ cleanup() object *exitfunc = sysget("exitfunc"); if (exitfunc) { - object *arg; object *res; sysset("exitfunc", (object *)NULL); - arg = newtupleobject(0); - if (arg == NULL) - res = NULL; - else { - res = call_object(exitfunc, arg); - DECREF(arg); - } + res = call_object(exitfunc, (object *)NULL); if (res == NULL) { fprintf(stderr, "Error in sys.exitfunc:\n"); print_error(); -- cgit v1.2.1