Simon Willison’s Weblog

Python Cookbook: Use generators for fetching large db record sets. Nice generator example.