diff options
author | Mark Shannon <mark@hotpy.org> | 2022-03-22 12:57:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-22 12:57:19 (GMT) |
commit | 49daf6dba8178c5ae5d4d65408b20566d39c36a8 (patch) | |
tree | 4cb58165463cc7fd136337716f3af631c563a908 /Modules | |
parent | 88872a29f19092d2fde27365af230abd6d301941 (diff) | |
download | cpython-49daf6dba8178c5ae5d4d65408b20566d39c36a8.zip cpython-49daf6dba8178c5ae5d4d65408b20566d39c36a8.tar.gz cpython-49daf6dba8178c5ae5d4d65408b20566d39c36a8.tar.bz2 |
bpo-47045: Remove `f_state` field (GH-31963)
* Remove the f_state field from _PyInterpreterFrame
* Make ownership of the frame explicit, replacing the is_generator field with an owner field.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_xxsubinterpretersmodule.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Modules/_xxsubinterpretersmodule.c b/Modules/_xxsubinterpretersmodule.c index 846b24d..0e37ce0 100644 --- a/Modules/_xxsubinterpretersmodule.c +++ b/Modules/_xxsubinterpretersmodule.c @@ -1843,10 +1843,7 @@ _is_running(PyInterpreterState *interp) if (frame == NULL) { return 0; } - - int executing = _PyFrame_IsExecuting(frame); - - return executing; + return 1; } static int |