rather than passing locals to the class body, just execute the class body in the proper environment

This commit is contained in:
Benjamin Peterson 2013-05-16 14:37:25 -05:00
parent e914123d1f
commit e8e14591eb
10 changed files with 3143 additions and 3175 deletions

View file

@ -1873,14 +1873,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
goto error;
}
TARGET(STORE_LOCALS) {
PyObject *locals = POP();
PyObject *old = f->f_locals;
Py_XDECREF(old);
f->f_locals = locals;
DISPATCH();
}
TARGET(RETURN_VALUE) {
retval = POP();
why = WHY_RETURN;