• Stefan Behnel's avatar
    Check frame back-pointer before we clear it. CPython can simply assert the... · 1299cdcb
    Stefan Behnel authored
    Check frame back-pointer before we clear it. CPython can simply assert the identity in genobject.c because it always owns a frame itself for the current coroutine. Since Cython does not have frames here and uses the last frame of whatever traceback it currently owns, it's not clear if we can really give any guarantees better than best-effort here.
    1299cdcb
Coroutine.c 74.1 KB