Finite State Machines (was "Re: control structures (was "Re: Sins")")

Skip Montanaro skip at mojam.com
Thu Jan 6 20:03:57 EST 2000


    Darrell> Using an exception as a "switch" statement is a cool idea.  A
    Darrell> dictionary approach comes to mind, with so many states.

Yup...  Check out

    http://www.musi-cal.com/~skip/python/

and scroll down to "Finite State Machine" for a slightly more elaborate way
of doing finite state machines...

Skip




More information about the Python-list mailing list