O'Reilly logo
  • Sergio Danelli thinks this is interesting:

Figure 16-1. Three phases in the execution of the simple_coro2 coroutine (note that each phase ends in a yield expression, and the next phase starts in the very same line, when the value of the yield expression is assigned to a variable)

From

Cover of Fluent Python

Note

Great visual on python coroutines.