[Twisted-Python] callLater(0) is A BIG LIE

Christopher Armstrong radeex at gmail.com
Mon Nov 1 16:26:30 MST 2004


Has that bug involving
callLater(0)-being-run-in-this-iteration-instead-of-the-next-one been
fixed? We've always said that callLater(0) goes into the next
iteration, and that's a very useful thing, and I think we should
ensure that Twisted has this behavior. If it's not fixed, it'd be
really cool (hint hint) if it were fixed by the time I release 2.0 :)

On Mon, 01 Nov 2004 21:06:05 GMT, exarkun at divmod.com <exarkun at divmod.com> wrote:
> On Mon, 1 Nov 2004 12:32:59 -0700, Jonathan Simms <slyphon at twistedmatrix.com> wrote:
> 
> 
> >On Mon, Nov 01, 2004 at 12:47:52PM +0000, exarkun at divmod.com wrote:
> > > On Mon, 1 Nov 2004 03:41:53 -0700, Jonathan Simms <slyphon at twistedmatrix.com> wrote:
> > > >I'd like to offer some reflections on the reactor and facilitate some
> > > > conversation on a subject that's been causing me much frustration:
> > > >
> > > >     the twisted idiom, "callLater(0)"
> > > >
> > >
> > > http://twistedmatrix.com/pipermail/twisted-python/2002-October/001943.html
> > >
> > >   In particular,
> > >
> > > http://twistedmatrix.com/pipermail/twisted-python/2002-October/001956.html
> > >
> > >   Jp
> >
> > Well great minds, etc. etc. ;)
> >
> > The thing is, it doesn't seem as if this has decreased the use of
> > callLater(0). Perhaps the answer would be to make a more concerted
> > effort in not using it?
> 
>   I don't understand.  I was primarily referring to this:
> 
> > So, let's review, in order of importance.  This patch:
> >
> >     * fixed no bugs
> >     * added no features
> >     * touched a lot of code
> >     * destabilized a core Twisted API (in a fowards-compatible but not
> >       backwards-compatible way) in that it implies callLater(0...) is
> >       deprecated
> >     * made a very basic and frequently-used idiom slightly less efficient
> >
> > Most of all, it provides two ways of doing the exact same thing, and I
> > generally think that the TIMTOWTDI philosophy is awful.
> > --
> >  |    <`'>    |  Glyph Lefkowitz: Travelling Sorcerer  |
> >  |   < _/ >   |  Lead Developer,  the Twisted project  |
> >  |  < ___/ >  |      http://www.twistedmatrix.com      |
> 
>   To paraphrase, callLater(0 is good, replacing it with something else for no reason other than to replace it with something else is pointless.
> 
>   Jp
> 
> 
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> 


-- 
 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+            http://radix.twistedmatrix.com




More information about the Twisted-Python mailing list