4 ms·
Python also has `yield` generator syntax which can approximate `async` syntax rather well (everything is still colored but less painful). There seems to be no c
by cben 12y ago
Python also has `yield` generator syntax which can approximate `async` syntax rather well (everything is still colored but less painful).
There seems to be no concensus whether generators or promises ("futures") are better but it seems to be agreed that if you want nice syntax you should be happy with generators.
The worst problem is stdlib APIs weren't designed for any async style.
=> gevent's monkey-patching all of stdlib is considered among the _less_ nasty solutions :-(
On a deeper level, I don't think the Python community even agrees async is a very important problem. Unlike the self-selection Node enjoyed, many people work on software where mostly sync code is good enough.