summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2020-07-17 10:44:23 (GMT)
committerGitHub <noreply@github.com>2020-07-17 10:44:23 (GMT)
commitcb9879b948a19c9434316f8ab6aba9c4601a8173 (patch)
tree2456a68d16bda26efc7f4f00f6fe5b4f4889f42c /Modules
parent8e836bb21ce73f0794fd769db5883c29680dfe47 (diff)
downloadcpython-cb9879b948a19c9434316f8ab6aba9c4601a8173.zip
cpython-cb9879b948a19c9434316f8ab6aba9c4601a8173.tar.gz
cpython-cb9879b948a19c9434316f8ab6aba9c4601a8173.tar.bz2
bpo-40941: Unify implicit and explicit state in the frame and generator objects into a single value. (GH-20803)
* Merge gen and frame state variables into one. * Replace stack pointer with depth in PyFrameObject. Makes code easier to read and saves a word of memory.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_xxsubinterpretersmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_xxsubinterpretersmodule.c b/Modules/_xxsubinterpretersmodule.c
index 8a6fce9..8943ebf 100644
--- a/Modules/_xxsubinterpretersmodule.c
+++ b/Modules/_xxsubinterpretersmodule.c
@@ -1847,7 +1847,7 @@ _is_running(PyInterpreterState *interp)
return 0;
}
- int executing = (int)(frame->f_executing);
+ int executing = _PyFrame_IsExecuting(frame);
Py_DECREF(frame);
return executing;