Re: [Twisted-Python] python properties in twisted don't work

2008-12-18 Thread James Y Knight
On Dec 18, 2008, at 3:06 PM, Tristan Seligmann wrote: * Alec Flett [2008-12-18 11:03:48 -0800]: On Dec 18, 2008, at 6:04 AM, Drew Smathers wrote: Protocol is an old-style class - doesn't inherit from object - so property won't work in that context. This won't be a problem in python 3 - o

Re: [Twisted-Python] python properties in twisted don't work

2008-12-18 Thread Tristan Seligmann
* Alec Flett [2008-12-18 11:03:48 -0800]: > > On Dec 18, 2008, at 6:04 AM, Drew Smathers wrote: > >> Protocol is an old-style class - doesn't inherit from object - so >> property won't work in that context. This won't be a problem in >> python 3 - old-style/new-style classes are consolidated. >>

Re: [Twisted-Python] python properties in twisted don't work

2008-12-18 Thread Alec Flett
On Dec 18, 2008, at 6:04 AM, Drew Smathers wrote: Protocol is an old-style class - doesn't inherit from object - so property won't work in that context. This won't be a problem in python 3 - old-style/new-style classes are consolidated. Is there any interest in adding 'object' to some of th

Re: [Twisted-Python] python properties in twisted don't work

2008-12-18 Thread Gabriel Rossetti
Jean-Paul Calderone wrote: On Thu, 18 Dec 2008 14:35:00 +0100, Gabriel Rossetti wrote: Hello everyone! I have a problem, if I try to use python property in a twisted program, it doesn't really work...the accessor works but as soon as I use the mutator, it no longer uses the property (and doe

Re: [Twisted-Python] python properties in twisted don't work

2008-12-18 Thread Drew Smathers
Protocol is an old-style class - doesn't inherit from object - so property won't work in that context. This won't be a problem in python 3 - old-style/new-style classes are consolidated. -Drew On Thu, Dec 18, 2008 at 8:35 AM, Gabriel Rossetti wrote: > Hello everyone! > > I have a problem, if I

Re: [Twisted-Python] python properties in twisted don't work

2008-12-18 Thread Jean-Paul Calderone
On Thu, 18 Dec 2008 14:35:00 +0100, Gabriel Rossetti wrote: Hello everyone! I have a problem, if I try to use python property in a twisted program, it doesn't really work...the accessor works but as soon as I use the mutator, it no longer uses the property (and doesn't set the "real" variabl