Re: [Twisted-Python] Twisted and PEP 3148 support

2011-01-11 Thread exarkun
On 03:10 am, screwt...@froup.com wrote: >>Futures may call their callbacks in any thread. So the line: >> > d.fail(e) >> >>must instead be something like: >> >> reactor.callFromThread(d.errback, e) > >PEP 3148 says: ># Added callables are called in the order that th

Re: [Twisted-Python] Twisted and PEP 3148 support

2011-01-10 Thread Tim Allen
On Tue, Jan 11, 2011 at 02:15:59AM -, exar...@twistedmatrix.com wrote: > On 01:54 am, screwt...@froup.com wrote: > >- Futures support cancellation; Twisted finally managed to get rid > > of cancellation support in Deferreds. > > We only got rid of Deferred.setTimeout. In exchange, we

Re: [Twisted-Python] Twisted and PEP 3148 support

2011-01-10 Thread exarkun
On 01:54 am, screwt...@froup.com wrote: Just a couple quick (minor) factual corrections. I'll snip everything that does not appear to need correction (of which there was a lot) to make it easier to read. >- Futures support cancellation; Twisted finally managed to get rid > of cancellat

Re: [Twisted-Python] Twisted and PEP 3148 support

2011-01-10 Thread Tim Allen
On Mon, Jan 10, 2011 at 11:57:14PM +0200, Alex Grönholm wrote: > The main focus of the discussion is to figure out how to best integrate > support for this new API to Twisted. If possible, existing protocols > should remain compatible through the use of adapters or some other > mechanism. If not

Re: [Twisted-Python] Twisted and PEP 3148 support

2011-01-10 Thread Alex Grönholm
11.01.2011 01:26, Christopher Armstrong kirjoitti: 2011/1/10 Alex Grönholm > There has been some discussion over email between myself and several Twisted developers regarding the possibility of adding support for PEP 3148 futures and executors to Twis

Re: [Twisted-Python] Twisted and PEP 3148 support

2011-01-10 Thread Christopher Armstrong
2011/1/10 Alex Grönholm > There has been some discussion over email between myself and several > Twisted developers regarding the possibility of adding support for PEP > 3148 futures and executors to Twisted. I'm starting this thread to move > the conversation to this mailing list to gain a broad

Re: [Twisted-Python] Twisted and PEP 3148 support

2011-01-10 Thread Alex Grönholm
11.01.2011 00:01, Jason J. W. Williams kirjoitti: > Do futures support chaining? From a cursory read of PEP 3148 it > doesn't look like they do. To add to my previous statement, this will obviously limit the portability of existing protocols, but I don't see it as a problem for *new code*. > -J >

Re: [Twisted-Python] Twisted and PEP 3148 support

2011-01-10 Thread Alex Grönholm
11.01.2011 00:01, Jason J. W. Williams kirjoitti: > Do futures support chaining? From a cursory read of PEP 3148 it > doesn't look like they do. They don't support chaining. Like I said, the underlying mechanics are quite a bit different from Deferreds. I don't really see that as a problem. Feel

Re: [Twisted-Python] Twisted and PEP 3148 support

2011-01-10 Thread Jason J. W. Williams
Do futures support chaining? From a cursory read of PEP 3148 it doesn't look like they do. -J 2011/1/10 Alex Grönholm : > There has been some discussion over email between myself and several > Twisted developers regarding the possibility of adding support for PEP > 3148 futures and executors to T