An oldie but goodie. Beazley did a follow-up to this at PyCon 2014, a 3-hour tutorial on generators. Very much worth a watch! It's called "Generators: The Final Frontier".<p><a href="https://www.youtube.com/watch?v=5-qadlG7tWo" rel="nofollow">https://www.youtube.com/watch?v=5-qadlG7tWo</a>
Nice course, but only if your platform supports the underlying concepts.<p>For instance, does Python still have the Global Interpreter Lock (GIL) issue? It is the reason Python was (at least once) unsuited for concurrent programming.<p>It was still better than NodeJS which has no intra-process threading; and generators (coroutines) are also not fully supported (no yielding allowed within functions called from a generator).