Crash report
What happened?
Found by the cpython3 fuzzer, see https://oss-fuzz.com/testcase-detail/5164455094976512.
>>> try:a
... finally:
... class h[l:{7for*()in 0}]:2
python: Python/compile.c:1163: _PyCompile_LeaveConditionalBlock: Assertion `c->u->u_in_conditional_block > 0' failed.
Aborted (core dumped)
I think I know how to fix it, I will open a PR.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
No response