Request for example of state machine using generators

Terry Reedy tjreedy at home.com
Tue Sep 18 11:51:43 EDT 2001


"Tim Peters" <tim.one at home.com> wrote in message
news:mailman.1000792880.26234.python-list at python.org...
> In 2.2a3 (or CVS), you can look at Tools/scripts/cleanfuture.py for
an
> extended example of using generators to avoid state machines, there
in a
> parsing context.  Lib/test/test_generators.py also has many examples
of
> generator techniques.

One can view both of these files directly from CVS source with browser
by starting at

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/python/python/dist/src/

Terry J. Reedy






More information about the Python-list mailing list