[Twisted-Python] Re: LoopingCall question
Itamar Shtull-Trauring
itamar at itamarst.org
Sat Jun 28 10:13:52 MDT 2008
> Itamar Shtull-Trauring wrote:
>> def _gotResult(self, r):
>> if r:
>> d = self.result
>> del self.result
>> self.result.callback(r)
>
> What am I missing that stops the above line from raising AttributeError?
That was a typo, thanks for pointing it out. Should be d.callback().
(Deferreds should be derefernced once callbacked or errbacked, since
unhandled errors will only get logged on GC.)
More information about the Twisted-Python
mailing list