Observer Design Pattern

Category: Python - Miscellaneous

This class implements the observer design pattern. Acting as a registration hub, it fires simple Events when requested. Date: 19 April, 2012


Observer Pattern - Design Pattern - Events Management - Observer - Pattern - Class

Homepage: http://code.activestate.com

Developer: code.activestate.com

License: Artistic License, GNU General Public License (GPL)

Operating System: Windows, Linux, Mac OS, BSD, Solaris

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

This script separates pattern implementation from your code so that you can reuse the implementation elsewhere.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This is a Python implementation of the observer pattern.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script can be good to avoid some limitations of multiple inheritance, when in need to expand functionalities of superclasses in the hierarchy or controlling the classes cooperation.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script separates pattern implementation from your code so that you can reuse the implementation elsewhere.

developer Developer: code.activestate.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Memento design pattern in python script allows you to cache instances based on what arguments are passed to them.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script is a sample implementation of the 'Null Object' design pattern.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This code implements the policy design pattern in Python by using metaclasses and multiple inheritance.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script is the same as InverseExtend, except it uses a yield for non-local flow of control.

developer Developer: code.activestate.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


This script addresses the following two needs: - Object construction for some class is expensive.

developer Developer: code.activestate.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris