I'm developing a web app based on aiohttp, and I find the event loop
concept very interesting. I never programmed with it before, but I
know that node.js and GUIs are based on it.
What I can't understand is how asyncio make it possible to run
multiple tasks concurrently, since it's single threaded
Steven D'Aprano wrote:
> The point you might have missed is that treating lists as if they were
> mappings violates at least one critical property of mappings: that the
> relationship between keys and values are stable.
This is true for immutable maps, but for mutable ones, you can simply do
ma
I noticed that the sequence types does not have these methods that the map
types has: get(), items(), keys(), values().
It could seem useless to have them for sequences, but I think it will ease
the creation of functions and methods that allow you to input a generic
iterable as parameter, but nee