June 11, 2002
Iterators and Generators

One of the biggest changes in Python 2.2 so far as I was concerned was the introduction of iterators and simple generators.

These allow some very elegant solutions to problems involving the processing of generated sequences. David Mertz has an interesting article explaining Iterators and simple generators on the developerWorks site, and another explaining how to use them to implement very lightweight threads.

Posted to Python by Simon Brunning at June 11, 2002 12:09 PM
Post a comment

Email Address:



Remember info?