I would use a central dispatcher. Each chapter function could return a token indicating which chapter is next, or it could return the actual next chapter function.
Look here for an *extensive* example of this style: http://homepage.mac.com/spkane/python/paranoia.py
Kent
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor