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
phpEnter 5.1.
Udemy Clone script 2.01
VisualNEO Web 19.11.7
VisualNEO for Windows 19.4.29.0
SentiVeillance SDK Trial 7.3
Devart ODBC Driver for PostgreSQL 3.2
SecureBridge 9.2
dotConnect for QuickBooks 1.9
dotConnect for Magento 1.9
dotConnect for Zoho CRM 1.10
dotConnect for FreshBooks 1.10
IP2Location Geolocation Database January.2020
dotConnect for BigCommerce 1.10
HTMLPad 2020 16.0
WeBuilder 2020 16.0
Top Code
Birthday 3.50
EveLottery for Game Script 1.1.3
Top Rated
phpEnter 5.1.
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
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
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Implementing the observer pattern yet again: this time with coroutines and the with statement 
File ID: 65625






Implementing the observer pattern yet again: this time with coroutines and the with statement 
Download Implementing the observer pattern yet again: this time with coroutines and the with statement http://code.activestate.com/recipes/498260-examples-of-algorithm-composition-with-the-observe/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 3
Submit Rating:
Implementing the observer pattern yet again: this time with coroutines and the with statement  Description
Description: Implements the observer design pattern via generator coroutines, wrapped up to use the new 'with' statement of Python 2.5. Enables the loosely-coupled observation of any container implementing the dictionary protocol.

License: Freeware

Related: Oop

O/S:Windows

Downloads: 3



More Similar Code

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 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/498259



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...



This is a GUI program I wrote implementing the seam carving algorithm developed by by Shai Avidan and Ariel Shamir. the video can be found at: , and the original paper can be found at: http://www.faculty.idc.ac.il/arik/imret.pdf



Fast template matching algorithm SSDXCORR is implemented in this file with neat and efficient code.

The details of SSDXCORR paper information is:
F. Essannouni, R. Oulad Haj Thami, D. Aboutajdine and A. Salam, "Simple...



The model simulates single phase bridge rectifier with resistive and inductive load. simulation also demonstrate the role of free wheeling diode. Single phase pulse generator was developed to generate the pulses at required firing angle.



Simulation of the Nagel Schreckenberg single-lane traffic model, with visualization and plotting.
Simulation the Nagel Schreckenberg single lane model. All standard parameters are implemented:

-vmax
-density
-braking...



The Page Syndication module works in conjunction with Panels and CTools to create content that other sites can embed with a single line of javascript. Content can take the form of just about anything that can be put on a Panels pages, including...



Qwicket is designed to create the basic skeleton of a wicket application with spring and hibernate configurations and basic page constructs built for you.



An example web application that demonstrates the ExtendedSpringMVCApplicationSupport project as a working app with Hibernate and a database. Also includes some Acegi security extensions.



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...

User Review for Implementing the observer pattern yet again: this time with coroutines and the with statement
- required fields
     

Please enter text on the image