Vladimir

63%
Flag icon
no instance attributes or closures are needed to keep the context while the coroutine is suspended waiting for the next .send(). That’s why coroutines are attractive replacements for callbacks in asynchronous programming—they keep local state between activations.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview