3 ms·
A slightly separate but still related question that bothers me every time I, a Python programmer, read about function coloring and different approaches to concu
by throwaway313373 2y ago
A slightly separate but still related question that bothers me every time I, a Python programmer, read about function coloring and different approaches to concurrency:
Does anyone understand why asyncio-style approach to async won over gevent-style in Python? Why was the former approach accepted into to stdlib, got special syntax and is preferred by the community while the latter is a fringe niche thing?
- zahlman 2y agoThe async keyword takes over from the asyncio standard library module; the relevant PEP for the former is https://peps.python.org/pep-0492/ https://peps.python.org/pep-0492/ and for the latter is https://peps.python.org/pep-3156/ https://peps.python.org/pep-3156/. That might give some hints.
- throwaway313373 2y agoUnfortunately, 3156 doesn't really have an explanation why did Guido chose this particular implementation. It just says "yeah, that's what we gonna do". And 492 was written when tulip/asyncio was already chosen and included into stdlib.
- 0cf8612b2e1e 2y agoI hope there that was the result of some back room deals made in cigar filled rooms. gevent feels more pythonic in the amount of things that effortlessly worked.