diff options
author | Sjoerd Mullender <sjoerd@acm.org> | 1993-10-22 12:04:32 (GMT) |
---|---|---|
committer | Sjoerd Mullender <sjoerd@acm.org> | 1993-10-22 12:04:32 (GMT) |
commit | 3bb8a05947fb67ed827dd1e8d7c0a982a1ff989e (patch) | |
tree | cb9c4f6b18f70822ade606f269fc043be542f5da /Python/ceval.c | |
parent | a75d306e2b799aa891666899ca973bec82b2362b (diff) | |
download | cpython-3bb8a05947fb67ed827dd1e8d7c0a982a1ff989e.zip cpython-3bb8a05947fb67ed827dd1e8d7c0a982a1ff989e.tar.gz cpython-3bb8a05947fb67ed827dd1e8d7c0a982a1ff989e.tar.bz2 |
Several optimizations and speed improvements.
cstubs: Use Matrix type instead of float[4][4].
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 071d664..329494e 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -821,7 +821,7 @@ eval_code(co, globals, locals, owner, arg) break; } if ((err = dict2remove(f->f_locals, w)) != 0) - err_setstr(NameError, getstringvalue(w)); + err_setval(NameError, w); break; #ifdef CASE_TOO_BIG @@ -1031,7 +1031,7 @@ eval_code(co, globals, locals, owner, arg) break; } if ((err = dict2remove(f->f_globals, w)) != 0) - err_setstr(NameError, getstringvalue(w)); + err_setval(NameError, w); break; case LOAD_CONST: @@ -1050,8 +1050,7 @@ eval_code(co, globals, locals, owner, arg) err_clear(); x = getbuiltin(w); if (x == NULL) { - err_setstr(NameError, - getstringvalue(w)); + err_setval(NameError, w); break; } } @@ -1073,8 +1072,7 @@ eval_code(co, globals, locals, owner, arg) err_clear(); x = getbuiltin(w); if (x == NULL) { - err_setstr(NameError, - getstringvalue(w)); + err_setval(NameError, w); break; } } @@ -1092,7 +1090,7 @@ eval_code(co, globals, locals, owner, arg) w = GETNAMEV(oparg); x = dict2lookup(f->f_locals, w); if (x == NULL) { - err_setstr(NameError, getstringvalue(w)); + err_setval(NameError, w); break; } if (is_accessobject(x)) { |