diff options
author | Guido van Rossum <guido@python.org> | 1995-07-18 14:51:37 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-07-18 14:51:37 (GMT) |
commit | 681d79aaf397850778608f35585d091fa7fe370a (patch) | |
tree | 3d45bd9b84777931bba732abd1dbba484e2a64c1 /Python/pythonrun.c | |
parent | 11a3f0c2bca1a8fdea396b989559f25fbc6fe65e (diff) | |
download | cpython-681d79aaf397850778608f35585d091fa7fe370a.zip cpython-681d79aaf397850778608f35585d091fa7fe370a.tar.gz cpython-681d79aaf397850778608f35585d091fa7fe370a.tar.bz2 |
keyword arguments and faster calls
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 2268c71..f087545 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(); |