# Crash report ### What happened? There is incorrect assertion in `code_returns_only_none` function from `Objects/codeobject.c`: ```python -> % cat subinterpreteres_assert.py from concurrent import interpreters interp = interpreters.create() interp.exec("""while True: pass""") -> % ./python subinterpreteres_assert.py python: Objects/codeobject.c:2132: code_returns_only_none: Assertion `IS_RAISE_OPCODE(final.op.code)' failed. [1] 1341262 IOT instruction ./python subinterpreteres_assert.py ``` I've already have a PR which fixes it. ### CPython versions tested on: CPython main branch, 3.14 ### Operating systems tested on: _No response_ ### Output from running 'python -VV' on the command line: _No response_ <!-- gh-linked-prs --> ### Linked PRs * gh-139779 <!-- /gh-linked-prs -->
Activity
picnixz commentedon Oct 8, 2025
Does it also occur on 3.13 if we dabble with some private modules?
efimov-mikhail commentedon Oct 8, 2025
I don't think so.
This function entirely was added recently: #132981