Question: Event driven programming

Jimmy Retzlaff jimmy at retzlaff.com
Sat Oct 27 17:29:46 EDT 2001


Károly Ladvánszky wrote:

> What I have in my mind is not necessarily UI related. In VB, objects
can
> raise events, objects interested in the events will handle them.
> Thats a very simple mechanism, facilitates easy coding in many
situations,
> even if its just a console application with no GUI at all.
> They are similar to exceptions but they return to the caller and they
can
> have parameters/return values of any kind.

The broadcaster module I posted to the Python Cookbook at
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81983 implements
a similar concept.

Jimmy




More information about the Python-list mailing list