|
|
|
|
|
by harlowja
3846 days ago
|
|
Anyone know when most of the python stdlib (the batteries included part) will start itself using async/await (for any/all things that could block)?? I suppose it will never change due to backwards compat. (which feels odd...)? |
|
Most code doesn't need to be non blocking. We only hear so much about non blocking because the Web is the big thing and Web programming benefits from it.
But there are hundreds of other fields in programming where IO is not the main issue, and hence don't need the additional complexity of being async.
Granted, asyncio does a good job at making async easier, but imperative code will always be easier to use, learn and teach. These qualities are very important, and made Python famous : easy to grow with, and yet powerful.
So the stdlib will remain as-is, the useful, easy and beautiful thing it has been.
We may see additions made to it so you can ALSO, when needed, do more stuff async. But really, I think we will see more and more external lib just doing that, so for when you DO need async, you will just pip install.
Things I do hope will have an additional async API though: