Observer pattern thoughts
Thomas Heller
theller at python.net
Thu Mar 6 16:14:12 EST 2003
george young <gry at ll.mit.edu> writes:
> I'm using an observer pattern as part of a
> model-view-presenter/controller GUI app. I had simply grabbed
> someone's source file with observer/observable classes and crunched
> along, inheriting from these classes and using register, notify, etc.
> But it seems to me that the classic Observable (adapted from type-anal
> C++):
[...]
> is unnecessarily restrictive and inflexible for python code.
Patrick O'Brian (sp?) has a nice recipe in the ActiveState Python
cookbook called dispatcher.py, which I'm using with great success.
Newer sources are maintained as part of PyCrust, which is now part of
wxPython.
Thomas
More information about the Python-list
mailing list