[Twisted-Python] Password hash for Perspective Brokers

2012-07-26 Thread Louis
Hello I have a problem with checkers in Twisted, which could be solved by adding a new feature. I think I can write the necessary code, but before doing so, I would like to hear you about it. # The problem If I am right, the only way passwords can be hashed when using auth

[Twisted-Python] [RFC] Introducing six as a dependency

2012-07-26 Thread Vladimir Perić
Hello all, as part of my work on porting Twisted to Python 3, I have considered using the six library[1] to help with some issues. six is basically a compatibility library - same idea as our twisted.python.compat module. Now, one approach is to add six as a dependency of Twisted - it is a very sma

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-26 Thread Jonathan Lange
On Thu, Jul 26, 2012 at 4:55 PM, Vladimir Perić wrote: > Hello all, > Hi! ... > Now, one approach is to add six as a dependency of Twisted - it is a > very small library so hardly a problem; on the other hand, it is an > additional dependency. ... > What do you all think? In the end, it boils do

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-26 Thread Duncan McGreggor
On Thu, Jul 26, 2012 at 10:55 AM, Vladimir Perić wrote: > Hello all, > > as part of my work on porting Twisted to Python 3, I have considered > using the six library[1] to help with some issues. six is basically a > compatibility library - same idea as our twisted.python.compat module. > Now, one

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-26 Thread Laurens Van Houtven
Does Glyph still believe these arguments to be true today? I don't know how long ago he said that, but I do know there's a lot of stuff that's been done to make packaging better :) Perhaps we could look into shipping twisted releases with and without dependencies? I personally have no such issu

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-26 Thread Gavin Panella
On 26 July 2012 16:55, Vladimir Perić wrote: ... > As a note, currently, I would need at least the reraise and exec_ > functions from six; Fwiw, reraise is fairly trivial and wouldn't be a big thing to carry in Twisted. exec(code, [globals, [locals]]) works on both Python 2 and Python 3, and see

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-26 Thread Jonathan Lange
On Thu, Jul 26, 2012 at 5:22 PM, Laurens Van Houtven <_...@lvh.cc> wrote: > Does Glyph still believe these arguments to be true today? I don't know how > long ago he said that, but I do know there's a lot of stuff that's been done > to make packaging better :) Sorry, should have dated: Feb 6, 20

Re: [Twisted-Python] Password hash for Perspective Brokers

2012-07-26 Thread exarkun
On 02:28 pm, spa...@gresille.org wrote: > Hello > I have a problem with checkers in Twisted, which could be >solved by >adding a new feature. I think I can write the necessary code, but >before >doing so, I would like to hear you about it. > ># The problem > > If I am righ

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-26 Thread Antoine Pitrou
On Thu, 26 Jul 2012 17:55:50 +0200 Vladimir Perić wrote: > Hello all, > > as part of my work on porting Twisted to Python 3, I have considered > using the six library[1] to help with some issues. six is basically a > compatibility library - same idea as our twisted.python.compat module. > Now, on

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-26 Thread Vladimir Perić
On 7/26/12, Gavin Panella wrote: > On 26 July 2012 16:55, Vladimir Perić wrote: > ... >> As a note, currently, I would need at least the reraise and exec_ >> functions from six; > > Fwiw, reraise is fairly trivial and wouldn't be a big thing to carry > in Twisted. > > exec(code, [globals, [locals

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-26 Thread Glyph
Le Jul 26, 2012 à 9:21 AM, Duncan McGreggor a écrit : > FWIW, I'm +1 on copying the bits we need into Twisted and +0 on adding > a new dep. I'd be closer to +0 on copying the bits we need (I'm not excited about it, but it seems to be necessary) and -1 on adding them as a new dependency, for t

Re: [Twisted-Python] Password hash for Perspective Brokers

2012-07-26 Thread Kevin Horn
On Thu, Jul 26, 2012 at 11:43 AM, wrote: > On 02:28 pm, spa...@gresille.org wrote: > > Hello > > I have a problem with checkers in Twisted, which could be > >solved by > >adding a new feature. I think I can write the necessary code, but > >before > >doing so, I would like to hear

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-26 Thread Glyph
Le Jul 26, 2012 à 9:22 AM, Laurens Van Houtven <_...@lvh.cc> a écrit : > Perhaps we could look into shipping twisted releases with and without > dependencies? I personally have no such issues since I just let pip/tox > handle everything for me and it figures it out already. This is only accurat

[Twisted-Python] Deferreds and progress

2012-07-26 Thread Tobias Oberstein
With Twisted, a Deferred can have it's callback only triggered once. With Deferreds in popular JavaScript libraries (when.js, jQuery Deferred, upcoming JS PromiseA proposal), there is a "progress()" callback for receiving results incrementally (or merely reporting on progress until the final res

Re: [Twisted-Python] Deferreds and progress

2012-07-26 Thread Itamar Turner-Trauring
On Thu, Jul 26, 2012 at 1:51 PM, Tobias Oberstein < tobias.oberst...@tavendo.de> wrote: > With Twisted, a Deferred can have it's callback only triggered once. > > ** ** > > With Deferreds in popular JavaScript libraries (when.js, jQuery Deferred, > upcoming JS PromiseA proposal), > > there

Re: [Twisted-Python] Deferreds and progress

2012-07-26 Thread Tobias Oberstein
>>On Thu, Jul 26, 2012 at 1:51 PM, Tobias Oberstein >> wrote: >>With Twisted, a Deferred can have it's callback only triggered once. >> >>With Deferreds in popular JavaScript libraries (when.js, jQuery Deferred, >>upcoming JS PromiseA proposal), >>there is a "progress()" callback for receiving re

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-26 Thread Kevin Horn
On Thu, Jul 26, 2012 at 12:48 PM, Glyph wrote: > Le Jul 26, 2012 à 9:22 AM, Laurens Van Houtven <_...@lvh.cc> a écrit : > > Perhaps we could look into shipping twisted releases with and without > dependencies? I personally have no such issues since I just let pip/tox > handle everything for me an

Re: [Twisted-Python] Deferreds and progress

2012-07-26 Thread Itamar Turner-Trauring
On Thu, Jul 26, 2012 at 2:44 PM, Tobias Oberstein < tobias.oberst...@tavendo.de> wrote: > > Thanks for pointing. So if something like this is added to Twisted, it > will be within producer/consumer, and not added to Deferred? > > The reason I am asking: Autobahn implements RPC over WebSocket, and

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-26 Thread Itamar Turner-Trauring
On Thu, Jul 26, 2012 at 3:06 PM, Kevin Horn wrote: > > This is only accurate to within a first approximation, but... pip does not >> work for Windows users. >> > > > Um, howso? I use it all the time, including for installing Twisted. > Unless you mean it doesn't work fro installing twisted for

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-26 Thread Glyph
Le Jul 26, 2012 à 12:06 PM, Kevin Horn a écrit : > ... for those who don't have a C compiler ... AKA "windows users". Even having full access to MSDN, it can be incredibly obscure to discover which Python version goes with which Visual Studio product. (Someone, please prove me wrong and ind

Re: [Twisted-Python] Password hash for Perspective Brokers

2012-07-26 Thread Glyph
Le Jul 26, 2012 à 10:36 AM, Kevin Horn a écrit : > > It would probably also help if someone finished the "Generic SASL > implementation" ticket. > > Lessee, who was working on that last? > > Crap. It was me. > > Sorry about that. If you're looking for some encouragement and help on that ti

Re: [Twisted-Python] Password hash for Perspective Brokers

2012-07-26 Thread Kevin Horn
On Thu, Jul 26, 2012 at 4:12 PM, Glyph wrote: > Le Jul 26, 2012 à 10:36 AM, Kevin Horn a écrit : > > > > > It would probably also help if someone finished the "Generic SASL > implementation" ticket. > > > > Lessee, who was working on that last? > > > > Crap. It was me. > > > > Sorry about that.

Re: [Twisted-Python] Password hash for Perspective Brokers

2012-07-26 Thread Flint
entation for PB would be the best way to > > go. > > > > The existing API and behavior should indeed be preserved as-is for > > backwards compatibility. The new authentication features should be > > exposed under a new API - either as new optional arguments accepted by > > PBS

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-26 Thread Mourad Anis
> > Even having full access to MSDN, it can be incredibly obscure to discover > which Python version goes with which Visual Studio product. (Someone, > please prove me wrong and indicate that there's a web page that shows what > the official python.org builds use and you don't have to go trawling