bpo-32311: Implement asyncio.create_task() shortcut by asvetlov · Pull Request #4848 · python/cpython (original) (raw)
My mistake -- extract_stack
was implemented in events.py
but not exported.
utils.py
was not exist, functions was defined in events.py
.
But it brings circular import dependency when I've added iscoroutine()
check to C Task:
iscoroutine()
implemented incoroutines.py
coroutines.py
importsevents.py
events.py
imports_asyncio
forget_running_loop()
C optimization_asyncio
importscoroutines.py
That's why I've extracted stack/traceback formatting functions into utils.py
but after that renamed utils.py
to format_helpers.py
.