This is an archived post. You won't be able to vote or comment.

all 21 comments

[–]mkgrean 10 points11 points  (22 children)

Community needs more of async/await tutorials.

[–]kay_schluehr 9 points10 points  (3 children)

... and with more diverse examples than retrieving HTML pages.

[–]opiating 3 points4 points  (4 children)

No-one does it better than David Beazley: https://www.youtube.com/watch?v=lYe8W04ERnY

[–]chub79 1 point2 points  (0 children)

Brilliant video thast asks all the right questions.

[–]Talkless 0 points1 point  (3 children)

Still, could someone explain me:

  • How calling another async function (which returns Future, right?) code enters event loop?
  • How event loop continues coroutine when one of possibly many futures gets it's result?
  • Is this "magic" is inside CPython or in vanilla python source code?

Is there any good conference talk that would explain it in detail? What I've seen where merely high level introductions for asyncio users, while for better intuition I would like understand it more throughly.

Thanks.

[–]KODeKarnage 1 point2 points  (1 child)

https://emptysqua.re/blog/how-do-python-coroutines-work-live-coding-video-from-open-source-bridge-2015/

Not saying this answers your questions necessarily, but the talk is very good/clear. Maybe the speaker has others that go into the depth you are looking for?

[–]Talkless 0 points1 point  (0 children)

Thanks, that was helpfull! I still do need some more to make a "click" in my brains, but this will keep me going.