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