Hacker News new | ask | show | jobs
by gerenuk 3359 days ago
How about asyncio in python 3 and gevent etc. in python 2?
2 comments

Right I'm not saying that python 2/3 doesn't have these abstractions (to be honest I'm not an expert in either Python or Go, I'm a C++/Haskell guy). Just that the author is creating an obvious false dichotomy.
Callbacks (asyncio & gevent) are not the same as coroutines. You have to experience the callback hell to understand the difference.
asyncio and gevent are coroutines, at least in all the senses that goroutines are.

In fact, so are regular post-PEP342 generators.

Asyncio does not use callbacks. It uses async/await syntax