Good Python generators example?
Alex Martelli
aleax at aleax.it
Sun Apr 20 19:07:19 EDT 2003
Robert Oschler wrote:
> Can someone point me to a nice concise Python 2.2 compatible example of
> the use of generators?
You might like my tutorial on iterators and generators at:
http://www.strakt.com/docs/eup02_itgen_alex.pdf
the example I'm thinking of is an external mergesort based on generators
(just in case you must ever sort files larger than memory...;-).
Alex
More information about the Python-list
mailing list