PySIG Meeting, 25 May 2006, Generators
Ted Roche
tedroche at tedroche.com
Fri May 26 08:53:01 EDT 2006
Bill Sconce entertained 5 attendees with a great presentation
explaining generators in Python. Comparisons of FOR clauses in a
dozen languages, discussions of the the classic gotchas with
iterators (off-by-one, picket-fence and infinite loops) were
discussed and inadvertently demonstrated. We then dug into what an
iterator is, how generators work, how assignments from tuples and
lists and sequences work within a FOR statement and that old bugaboo,
immutability. Excellent discussion! Working with the interpreter got
us to dive in and test exceptional cases. In addition, folks got to
network, swap stories, arrange for hardware repair, come up with a
theory on how to get projectors to work best (wire everything
together, set the laptop to the desired resolution, shut down and
restart the projector) and enjoy milk and cookies, kindly provided by
Janet.
It doesn't get much better than that.
Next PySIG meeting: June 22. Topic tba.
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com
More information about the gnhlug-discuss
mailing list