observer pattern question #1 (reference to subject)

Alan Isaac aisaac at american.edu
Thu May 8 17:57:10 EDT 2008


Ville M. Vainio wrote:

> in case of stocks, you are probably monitoring several 

> stock objects, so the stock should probably pass itself to 

> the observer



OK.  This is related to my question #2 (in a separate 

thread), where I'd also appreciate your comments.





> analogous to a typical UI scenario where you have several 

> widgets forwarding events to one big observer - and they 

> *do* provide the event source and event type. 



That is a helpful comparison.





> All in all, though, the right solution should be obvious 

> from the problem at hand. 



For CS types, maybe.  The rest of us are just trying to get 

things done without as much background and context.



Thanks,

Alan





More information about the Python-list mailing list