Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-43693: Eliminate unused "fast locals". #26587

Merged
Prev Previous commit
Next Next commit
Simplify a comment.
  • Loading branch information
ericsnowcurrently committed Jun 15, 2021
commit 09c3cdd81987330c443e9ed0fb9590479fd3c295
5 changes: 2 additions & 3 deletions Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -2922,10 +2922,9 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, PyFrameObject *f, int throwflag)
}

case TARGET(MAKE_CELL): {
// "initial" is probably NULL but not if it's an arg (or set
// via PyFrame_LocalsToFast() before MAKE_CELL has run).
PyObject *initial = GETLOCAL(oparg);
// If "initial" isn't NULL then it is an arg value set
// in _PyEval_MakeFrameVector() (likely) or an initial
// value set in PyFrame_LocalsToFast() (unlikely).
PyObject *cell = PyCell_New(initial);
if (cell == NULL) {
goto error;
Expand Down