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.
Related posts:
- Drawing Gradients with PyGame
- My PyCon APAC 2011 Presentation: Optimizing Media Performance with django_compressor
- Working with files in Django – Part 1
- Working with files in Django – Part 2
An [excellent tutorial](http://www.dabeaz.com/coroutines/) explaining [`yield` expression and coroutines](http://www.python.org/dev/peps/pep-0342/) 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](http://www.dabeaz.com/about.html) 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.
Tags: coroutines, hello world, pep, python, share, tutorial
This entry was posted
on Monday, April 6th, 2009 at 10:05 and is filed under Programming.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.