[Twisted-Python] why deferred.setTimeout is not my favorite API method
Bob Ippolito
bob at redivi.com
Sat Apr 17 20:51:58 EDT 2004
On Apr 17, 2004, at 8:28 PM, Andrew Bennetts wrote:
> On Sat, Apr 17, 2004 at 11:59:22PM +0000, exarkun at divmod.com wrote:
>>
>> setTimeout() is the only part of Deferreds that tie them to
>> twisted.internet. If it is removed, defer.py could (other issues,
>> such
>> as backwards compatibility and user consternation aside) be moved
>> to the
>> twisted.python package. It also makes it that much easier to use
>> Deferreds with a non-Twisted reactor.
>
> This bugs me too, but only a little. I can't think of any other
> asynchronous python frameworks outside of Twisted that might want to
> use
> Deferreds.
I've used it outside of twisted plenty of times (more failure than
deferred), even in other networking code... but I wrote my own versions
of each because I wanted to fix issues with deferred, and I wanted a
simpler implementation of failure.
-bob
More information about the Twisted-Python
mailing list