mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
rather than passing locals to the class body, just execute the class body in the proper environment
This commit is contained in:
parent
e914123d1f
commit
e8e14591eb
10 changed files with 3143 additions and 3175 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue