Hacker News new | ask | show | jobs
by kyllo 4083 days ago
Well here's a great blog post on how to use the @asyncio.coroutine decorator to do asynchronous/non-blocking I/O in this style, as opposed to JS-style callbacks. I think the control flow is a lot clearer with coroutines as opposed to callbacks. I've never used Twisted though so I'm not sure how asyncio compares to that library.

http://sahandsaba.com/understanding-asyncio-node-js-python-3...