[Twisted-Python] Using Deferreds

Pavel Pergamenshchik pp64 at codelock.com
Fri Jun 17 15:08:26 EDT 2005

On Thu, 16 Jun 2005 21:31:00 -0400
Kevin Smith <kevin at electricanvil.com> wrote:

> Getting my feet wet with Twisted and I've got a couple of questions
> regarding Deferreds. To wit:
> 1) Is there a way to re-use Deferreds? It seems that a Deferred instance
> is not usable after a callback has been triggered. When I try to trigger
> a second callback on the same instance a AlreadyCalledError is raised.
> Is there another approach I should be using?
> 2) I don't have a concrete reason for needing to do this, but is it
> possible to remove a function registered as a callback from a Deferred?
> I ask this question more out of curiosity rather than any practical need.

Perhaps http://pydispatcher.sf.net is something that would suit you better.

P.S.: You people! Use pydispatcher more! It's totally awesome.

More information about the Twisted-Python mailing list