[Twisted-Python] Re: Events in Python
Stephen Waterbury
waterbug at pangalactic.us
Thu Jan 31 09:17:53 EST 2008
Toby Dickenson 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.
Actually, the latest incarnation of PyDispatcher is Louie:
http://louie.berlios.de/
... which offers more features and works fine as a drop-in
replacement for PyDispatcher.
Steve
More information about the Twisted-Python
mailing list