Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
dbForge Studio for PostgreSQL 2.3.212
HTMLPad 2020 16.2
WeBuilder 2020 16.2
Rapid CSS 2020 16.2
Rapid PHP 2020 16.2
C# HTML to PDF 2020.8.1
Flowrigami 1.0.0.1
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Top Code
IcrediBB Bulletin Board System 1.0
Ticket Booking System 1.0
dbForge Studio for PostgreSQL 2.3.212
Kalman Filter Tutorial 1.0
Ruby FANN-Fast Artificial Neural Network 1.1.3
Ez Paypal Clone 7.4.2
Java-2-Pseudo 1.0
PID Tuning Using Genetic Algorithm 1.1
Paypal Clone Script 1.0.9
Quick Maps For Dynamics CRM 3.1
Chowtro - Online Restaurant Food Ordering Software 1.0
Online Food Ordering System 1.3.2
Linklok URL
ZLPORTIO Library 1.50
Booking system api 6.x-1.x-dev
Top Rated
Uber Clone with Safety Measure Addons 2.0
Answers phpSoftPro 3.12
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Apphitect Airbnb Clone Script 1.0
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
Observer pattern implemented with Descriptor class 
File ID: 64110






Observer pattern implemented with Descriptor class 
Download Observer pattern implemented with Descriptor class http://code.activestate.com/recipes/578038-observer-pattern-implemented-with-descriptor-class/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 4
Submit Rating:
Observer pattern implemented with Descriptor class  Description
Description: The observer pattern is implemented using an observable descriptor.
One creates instances of observable in a class, which allows observers to
subscribe to changes in the observable. Assigning a value to the observable
causes the suscribers to be notified. An observable can subscribe to another observable, in which case changes to the second propagate to subscribers of the first.
The subscribe method returns a Subscription object. When this object is deleted or becomes unreferenced, the subscription is cancelled.

This version compatible with Python 3.0
Example uses unittest to help in understanding the functionality.

License: Freeware

Related: descriptor, observer, Publish, reactive, Subscribe

O/S:Windows

Downloads: 4



More Similar Code

This is a threadsafe version of recipe 576979. A publish-subscribe (observer) pattern is implemented as a descriptor. Assigning a value notifies the observers.
Uses recipe 577105 as synchlock.py and recipe 576979 as Observer.py



A simple, flexible, general-purpose observer pattern.

Observers can be callable objects or objects with a particular named method (handle_notify() by default). Events can be any object, and observers can select which events they are...



Implements the toposort and strongly_connected_components graph algorithms,
as a demonstration of how to use the recipe, 'Implementing the observer pattern
yet again: this time with coroutines and the with statement'.

See...



User Authentication Class with Database Class is multi-platform compatible. A script that allows user authorization on a site. It mails the user and make them follow a link for verification of signup. This includes a small db class to support the...



This recipe provides a descriptor class and a decorator to make the deferred binding. Before the first access to that name, the __dict__ of the class will have the descriptor object. After that first access it will have whatever was returned by...



This recipe implements an observer pattern for dictionaries and lists. It does not support a one-many relation. The observer is sent enough information so that the change can be undone.



This is an open source SWF authoring library with C class interface.

It supports flash movies generation up to version 3.



Tides is a thread pool library implemented with Ruby. It has following features: 1. The thread pool can be instantiated. 2. The number of threads can be changed dynamically.



The well known GOF design patterns will be implemented with C++ in this project for educational purposes.



MIDE is an IDE for working with UML Class Diagram model. It extends the Eclipse UML2 Editor and provides *carrying out complex tasks in one click *query gui engine * and a pattern-matching engine for detecting design errors as soon as they are made

User Review for Observer pattern implemented with Descriptor class
- required fields
     

Please enter text on the image