Asyncio, twisted, tornado, gevent walk into a bar... (www.bitecode.dev)
from pnutzh4x0r@lemmy.ndlug.org to python@programming.dev on 23 Aug 2023 11:08
https://lemmy.ndlug.org/post/109672

Concurrency has a lot to do with sharing one resource, and Python has dedicated tools to deal with that depending on the resource you must share.

If you have to share one CPU while waiting on the network, then the specialized tools for this are asyncio, twisted, trio, gevent, etc.

Asyncio is the current standard to do this, but tornado, gevent and twisted solved this problem more than a decade ago. While trio and curio are showing us what the future could look like

But chances are, you should use none of them.

Discussion on Hacker News

#python

threaded - newest