ASYNCHRONOUS PROGRAMMING WITH NEW ASYNCIO MODULE.
summary
Python 3.4 includes the Tulip-derived asyncio library that provides an event loop, StreamReader/StreamWriter streams, futures, tasks and coroutine decorators; code schedules coroutines with ensure_future and runs them with run_until_complete or the loop’s run_forever. The talk demos using streams instead of low‑level protocols/transports, shows a process/executor API for blocking work, and reports building a custom transport/driver to integrate nonstandard sockets. Practical warnings: avoid relying on a global loop, pass an explicit loop in tests, and expect limitations — no async context managers or magic two‑way awaits yet.
AI-written summary · about
