Re: [Twisted-Python] Passing extra arguments along callbacks

2011-10-21 Thread Jonathan Ballet
Hi Terry, On Fri, Oct 21, 2011 at 09:50:56PM -0400, Terry Jones wrote: > Hi Jonathan > > > def resolve(ip): > > ptr = '.'.join(ip.split('.')[::-1]) + '.in-addr.arpa' > > return client.lookupPointer(ptr).\ > > addCallback(lambda x: (ip, x)).\ > > addErrback(lambda x

Re: [Twisted-Python] Passing extra arguments along callbacks

2011-10-21 Thread Terry Jones
Hi Jonathan > def resolve(ip): > ptr = '.'.join(ip.split('.')[::-1]) + '.in-addr.arpa' > return client.lookupPointer(ptr).\ > addCallback(lambda x: (ip, x)).\ > addErrback(lambda x: (ip, x)) Your errback isn't raising and isn't returning a Failure, so the processin

[Twisted-Python] Passing extra arguments along callbacks

2011-10-21 Thread Jonathan Ballet
Hello, I'm trying to play a little bit with Twisted to discover how it works and I thought it was a nice exercise with the following case. I have a list of IP addresses that I want to get the reverse DNS value. I'm using the answer provided by JP at http://twistedmatrix.com/pipermail/twisted-pyth

Re: [Twisted-Python] Twisted for Python 3

2011-10-21 Thread exarkun
On 05:23 pm, solip...@pitrou.net wrote: >On Wed, 19 Oct 2011 17:46:41 -0400 >"Itamar Turner-Trauring" wrote: >>Patches to Twisted trunk are also good for things that'll make 2to3 >>output >>work with less manual fixes (e.g. renaming variables named "callable" >>to >>something else). > >Ah, good

Re: [Twisted-Python] Twisted for Python 3

2011-10-21 Thread Antoine Pitrou
On Wed, 19 Oct 2011 17:46:41 -0400 "Itamar Turner-Trauring" wrote: > Patches to Twisted trunk are also good for things that'll make 2to3 output > work with less manual fixes (e.g. renaming variables named "callable" to > something else). Ah, good example indeed. I take it you had already tried a

Re: [Twisted-Python] First pre-release of Twisted 11.1.0

2011-10-21 Thread Jonathan Lange
On Fri, Oct 21, 2011 at 3:28 PM, Thomas Hervé wrote: > Hello, fine people of the intraweb, > > We're dangerously approaching the end of the year, without a second > release done, which is obviously unacceptable. I thus present you with > Twisted 11.1.0pre1: > >    http://people.canonical.com/~ther

[Twisted-Python] First pre-release of Twisted 11.1.0

2011-10-21 Thread Thomas Hervé
Hello, fine people of the intraweb, We're dangerously approaching the end of the year, without a second release done, which is obviously unacceptable. I thus present you with Twisted 11.1.0pre1: http://people.canonical.com/~therve/Twisted/11.1.0pre1/ Some hightlights of the 178 tickets close

Re: [Twisted-Python] Anyone interested in being release manager for 11.1?

2011-10-21 Thread Thomas Hervé
Le 18/10/2011 19:20, Andrés Gasson a écrit : > I don't meet many of the prerequisites (none actually) - but seeing Im now > recently unemployed I can offer a hand to anyone who does have the > prerequisites > > Commit privileges to Twisted > Shell access to cube.twistedmatrix.com > XXX: Possibl