Observer Pattern (if you got some spare time)

David Goodger goodger at python.org
Mon Jun 16 14:37:39 EDT 2003


Docutils uses an Observer pattern in a couple of places:
docutils.utils.Reporter, and docutils.statemachine.StateMachine.
They're very simple implementations, but I think that's the beauty
of Patterns in Python: most of the implementation details become
unnecessary.

-- 
David Goodger    http://starship.python.net/~goodger    Projects:
   * Python Docutils: http://docutils.sourceforge.net/
     (includes reStructuredText: http://docutils.sf.net/rst.html)
   * The Go Tools Project: http://gotools.sourceforge.net/







More information about the Python-list mailing list