Y
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
banachtarski
3359 days ago
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.
link
chmike
3359 days ago
Callbacks (asyncio & gevent) are not the same as coroutines. You have to experience the callback hell to understand the difference.
link
masklinn
3359 days ago
asyncio and gevent are coroutines, at least in all the senses that goroutines are.
In fact, so are regular post-PEP342 generators.
link
nhumrich
3359 days ago
Asyncio does not use callbacks. It uses async/await syntax
link