[issue45262] crash if asyncio is used before and after re-initialization if using python embedded in an application
STINNER Victor
report at bugs.python.org
Wed Sep 29 16:41:07 EDT 2021
STINNER Victor <vstinner at python.org> added the comment:
> "Assertion failed: Py_IS_TYPE(rl, &PyRunningLoopHolder_Type), file D:\a\1\s\Modules_asynciomodule.c, line 261"
The _asyncio extension uses static types and doesn't implement the multiphase initialization API. It doesn't work well with your "deinitialize/initialize the interpreter" use case.
The _asyncio extension should use heap types and the multiphase init API.
----------
nosy: +vstinner
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45262>
_______________________________________
More information about the Python-bugs-list
mailing list