Generators, Coroutines and Nanoservices

Generators, Coroutines and Nanoservices

PyCon US via YouTube Direct link

Intro

1 of 30

1 of 30

Intro

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 I teach Python!
  3. 3 The dumbest function in the world
  4. 4 Bytecode from our function
  5. 5 Resume?
  6. 6 "yield" changes everything
  7. 7 Resume is back!
  8. 8 The iterator protocol
  9. 9 Generators implement this protocol
  10. 10 Calling iter() gets an object's iterator
  11. 11 "next" advances the generator
  12. 12 fib
  13. 13 read_n
  14. 14 next_vowel
  15. 15 So, when do we use generators?
  16. 16 Using our generator with "send"
  17. 17 How can I use coroutines?
  18. 18 Coroutine as "nanoservices"
  19. 19 Example: MD5
  20. 20 Coroutine example 1: MD5
  21. 21 Coroutine example 2: Weather
  22. 22 Coroutine example 2.1: Weather
  23. 23 When we get to the end of the list...
  24. 24 The "throw" method
  25. 25 Revisiting the weather
  26. 26 Refactoring our generator
  27. 27 "yield from" to the rescue!
  28. 28 What about asyncio?
  29. 29 Should you use coroutines?
  30. 30 Questions?

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.