Re: why can't a callback be called with a deferred?

"Scott, Barry" <[email protected]> Mon, 25 Feb 2019 11:32:18 +0000
Newsgroups gmane.comp.python.twisted
Message-ID <5270225.y76kS8R4JG@barry-scott-desktop>
On Tuesday, 19 February 2019 11:00:57 GMT Chris Withers wrote:
> Hi All,
> 
> There's this assert:
> 
> https://github.com/twisted/twisted/blob/trunk/src/twisted/internet/defer.py#
> L459
> 
> ...and I'd like to understand why it's there.

We hit this assert when porting from very old twisted to current twisted.
In all cases the problem was with our code that used deferreds in a poor, not
well understood way. After refactoring we are a lot happier with the
resulting code as it easier to maintain now.

Barry



_______________________________________________
Twisted-Python mailing list
[email protected]
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python