Zoom, Enhance: Asyncio's New Introspection Powers
summary
Python 3.14 adds the ability to introspect a running asyncio program from another OS process, claiming cross‑process debugging and profiling with zero performance penalty. It adds a task.awaited_by attribute plus APIs like capture call graph and print task call graph, and ships a working async‑ps tool that produces real‑time trees and tables of tasks and awaits. The feature survives heavy review, demonstrates a live demo against CPython test suites, and is validated as functioning end‑to‑end.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 2:24The problem
- 6:11Asyncio basics
- 8:37Initial introspection
- 11:56Advanced introspection
- 14:21Testing and setbacks
- 17:17The complex data structure
- 19:00Live demo
- 21:27Conclusion
related talks
30mImproving debuggability of complex asyncio applications
32mEnhancing AsyncIO for Complex Applications
19mUnblocking the Loop: Mastering Python's I/O Loop Monitoring
28mKnocking On A Process’s Door: Introspecting Live Python Processes
56mLeveraging Async and Await in Modern Python
30mLet's get you started with asynchronous programming
01h 21mTUTORIAL: Async Python, Good it is
31mA Really Gentle Introduction to Asyncio
