Observer implementations

Gerhard Häring gh at ghaering.de
Mon Jun 15 09:44:07 EDT 2009


Tobias Weber wrote:
> Hi,
> how to use the Observer pattern in Python?

Implement it in your classes?

> I found PubSub and PyDispatcher, both of which are abandoned. [...]

I haven't searched for these, but googling for "python observer pattern"
yields http://code.activestate.com/recipes/131499/ and this seems  like
a good inspiritation for owns own implementation.

-- Gerhard




More information about the Python-list mailing list