diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-11-03 10:01:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-03 10:01:36 (GMT) |
commit | d49aba5a7a3c695213810a9f82715809c6332df2 (patch) | |
tree | f949b9af90ff9d697ed2836efaea5b3b3e06e34c /Objects/frameobject.c | |
parent | 7810b6981ac663b77bc9ee9dc4b1960ec6845ea7 (diff) | |
download | cpython-d49aba5a7a3c695213810a9f82715809c6332df2.zip cpython-d49aba5a7a3c695213810a9f82715809c6332df2.tar.gz cpython-d49aba5a7a3c695213810a9f82715809c6332df2.tar.bz2 |
gh-111354: Simplify _PyGen_yf by moving some of its work to the compiler and frame state (#111648)
Diffstat (limited to 'Objects/frameobject.c')
-rw-r--r-- | Objects/frameobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 698e884..170c117 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -608,7 +608,7 @@ static bool frame_is_suspended(PyFrameObject *frame) assert(!_PyFrame_IsIncomplete(frame->f_frame)); if (frame->f_frame->owner == FRAME_OWNED_BY_GENERATOR) { PyGenObject *gen = _PyFrame_GetGenerator(frame->f_frame); - return gen->gi_frame_state == FRAME_SUSPENDED; + return FRAME_STATE_SUSPENDED(gen->gi_frame_state); } return false; } |