Trivial ThoughtsThoughts and discussion on programming projects using the Python language.The Observer Pattern in Python- June 15, 2004 The Observer Pattern in Python I find that the best way to get a deep understanding of a programming concept is to code it up yourself. Here's my take on the standard Observer Pattern. I wanted to fully understand it, because I expect to need it shortly. This also gave me the opportunity to learn about the handy-dandy weakref module. This implementation is a bit different from the standard GoF one. For one thing, I wanted a clean way for an Observer to be able to observe.http://radio.weblogs.com/0124960/2004/06/15.html#a30 |