I've never really thought of a use for generators, but this presentation at PyCon 2008 certainly changes my mind: http://www.dabeaz.com/generators/ Chris Foote <chris at inetd.com.au> Inetd Pty Ltd T/A HostExpress Web: http://www.hostexpress.com.au Blog: http://www.hostexpress.com.au/drupal/chris Phone: (08) 8410 4566