Skip to content

Commit

Permalink
Python3.12: Fix, raising "Stopiteration" from generators is allowed a…
Browse files Browse the repository at this point in the history
…gain
  • Loading branch information
kayhayen committed May 15, 2024
1 parent 5ed85ff commit 386fb4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuitka/build/static_src/CompiledGeneratorType.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ static PyObject *_Nuitka_Generator_send(PyThreadState *tstate, struct Nuitka_Gen
}
#endif

#if PYTHON_VERSION >= 0x350
#if PYTHON_VERSION >= 0x350 && PYTHON_VERSION < 0x3c0
if (
#if PYTHON_VERSION < 0x370
generator->m_code_object->co_flags & CO_FUTURE_GENERATOR_STOP &&
Expand Down

0 comments on commit 386fb4b

Please sign in to comment.