Generators, Coroutines, and Nanoservices

Generators, Coroutines, and Nanoservices

EuroPython Conference via YouTube Direct link

Megaservices

28 of 32

28 of 32

Megaservices

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Generators, Coroutines, and Nanoservices

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 The dumbest function in the world
  3. 3 Bytecode from our function
  4. 4 What about this function?
  5. 5 What's the difference?
  6. 6 Bytecodes
  7. 7 What's a generator?
  8. 8 How does a "for" loop work
  9. 9 What about with our generator?
  10. 10 Doing it manually
  11. 11 "next" and generators
  12. 12 fib
  13. 13 Generator example 2: read_n
  14. 14 next_vowel
  15. 15 So, when do we use generators?
  16. 16 "yield" as an expression
  17. 17 The "send" method
  18. 18 Walrus yield
  19. 19 How can I use coroutines?
  20. 20 Coroutine as "nanoservices"
  21. 21 Example: MD5
  22. 22 Coroutine example 1: MD5
  23. 23 Coroutine example 2: Weather
  24. 24 Coroutine example 2.1: Weather
  25. 25 Coroutine example 3
  26. 26 Ending early
  27. 27 Revisiting the weather
  28. 28 Megaservices
  29. 29 Refactoring our generator
  30. 30 "yield from" to the rescue!
  31. 31 What about asyncio?
  32. 32 Should you use coroutines?

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.