At 07:53 AM 10/12/2007, you wrote:
Dick Moores wrote:
Terrific, Kent. I promise I'll use 'em whenever I can. And I'll also try again to understand generators: < http://docs.python.org/tut/node11.html#SECTION00111000000000000000000 >. But I'll begin with the section just before that, on iterators: < http://docs.python.org/tut/node11.html#SECTION0011900000000000000000 >. Looks like tough going..

Maybe you like my writeup better:
http://personalpages.tds.net/~kent37/kk/00004.html

Definitely!

And I found a couple more:

Python Generators – What Are They?
http://www.neotitans.com/resources/python-generators-tutorial.html

Tutorial on Python Iterators and Generators
http://heather.cs.ucdavis.edu/~matloff/Python/PyIterGen.pdf

BTW is Kent's Korner still going at your SIG? Can we expect some more of these gems to appear soon on < http://personalpages.tds.net/~kent37/kk/>?

There's not much reason to write iterators from scratch anymore; in most cases it is simpler to write a generator function. It's good to understand the concept of an iterator but the details of the plumbing are not so important.

OK.

Thanks,

Dick

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to