diff options
author | Guido van Rossum <guido@python.org> | 1995-07-18 14:51:37 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-07-18 14:51:37 +0000 |
commit | 3b7073d270505edf5d6a26e6b4afe5cb5f925aa3 (patch) | |
tree | 979a3d8c97f2640125ae464fd6e8f2d72f63bf4b /Python/pythonrun.c | |
parent | baea1c3bbfc5127aebca9263043d0fa558156dc5 (diff) | |
download | cpython-3b7073d270505edf5d6a26e6b4afe5cb5f925aa3.tar.gz |
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 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(); |