Generators are coroutines, but not all coroutines are generators.
Unlike a generator, a coroutine can yield from within any level of function within the coroutine, not just at the top-most level.
Unlike a generator, a coroutine can yield from within any level of function within the coroutine, not just at the top-most level.
New Models for Processing Text and XML with Python | Sam Wilmott |
Slide 43 of 51 | www.wilmott.ca |