[Twisted-Python] Re: Events in Python

Drake Smith drakesmith at adelphia.net
Thu Jan 31 05:05:45 MST 2008


At 06:17 AM 1/31/2008, you wrote:
>Simon Pickles wrote:
>
> > Drew Smathers wrote:
> >>
> >> Deferreds are a one-shot deal - you can only call them once.
> >>
> > eeek! of course they are! Well at least in Python the roll-your-own
> > option is very straight forward.
>
>Or check out http://pydispatcher.sourceforge.net/.
>
>We use this extensively with twisted.... Deferred for one shot events, and
>dispatcher for events that can be fired multiple times.

Another Event Dispatcher may be found here, deep in the bowels of Twisted:

http://twistedmatrix.com/documents/current/api/twisted.words.xish.utility.EventDispatcher.html





More information about the Twisted-Python mailing list