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:

That's why I've extracted stack/traceback formatting functions into utils.py but after that renamed utils.py to format_helpers.py.