Posts Tagged ‘coroutines’

GALFTHW Style Tutorial On Python Coroutines

Monday, April 6th, 2009

An excellent tutorial explaining yield expression and coroutines with examples like data processing pipelines and cooperative multitasking1. I loved it for the following reasons:

  • It is written well and examples are clean and to the point. I’ve just read the slides and I have a much better understanding about coroutines now.
  • It aims to give a better understanding about the subject. But doesn’t just Hello World the examples, all code included is practical and useful. (Death to Fibonacci! LOL)
  • Author explains thing from a wide perspective, including counter-arguments and possible bottlenecks and necessary warnings…

All in all I really enjoyed this tutorial. Highly recommended.


1: Multitasking possibly within a single thread/process.

Bookmark and Share