Generator Tricks for Systems Programmers, v3.0
http://www.dabeaz.com/generators/
Copyright (C) 2008, 2018
David M. Beazley
http://www.dabeaz.com
Presented at PyCon'08, March 13, 2008, Chicago, Illinois. Updated to Python 3.7, October 29, 2018.
Related Tutorials
- A Curious Course on Coroutines and Concurrency. Presented at PyCon 2009 (Chicago).
- Generators: The Final Frontier. Presented at PyCon 2014 (Montreal).
Introduction
This tutorial discusses various techniques for using generator functions and generator expressions in the context of systems programming. This topic loosely includes files, file systems, text parsing, network programming, and programming with threads.
- Presentation Slides (PDF). [ Speakerdeck ]
- Example code (Github)
Original Presentation
The original PyCon 2008 presentation is available here.