Re: [Twisted-Python] How to get the class of the wrapped fget/fset property methods

2016-03-16 Thread Adi Roiban
FYI. Amber has merged the branch adding @deprecatedProperty https://twistedmatrix.com/trac/ticket/8124 and the issue raised in this ticket is solved Thanks! -- Adi Roiban ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twisted

Re: [Twisted-Python] How to get the class of the wrapped fget/fset property methods

2015-11-23 Thread Glyph Lefkowitz
> On Nov 23, 2015, at 07:38, Adi Roiban wrote: > > > > Will push the tests and will ask for help in the review queue. > > Thanks! > > > Another option is to fix @deprecated to call getDeprecationWarningString when > the method is called not when it is created. I think you mean the other

Re: [Twisted-Python] How to get the class of the wrapped fget/fset property methods

2015-11-23 Thread Adi Roiban
> > > > Will push the tests and will ask for help in the review queue. > > Thanks! > > Another option is to fix @deprecated to call getDeprecationWarningString when the method is called not when it is created. Regards -- Adi Roiban ___ Twisted-Python ma

Re: [Twisted-Python] How to get the class of the wrapped fget/fset property methods

2015-11-23 Thread Adi Roiban
On 23 November 2015 at 02:32, Glyph Lefkowitz wrote: > > On Nov 22, 2015, at 07:04, Adi Roiban wrote: > > The @deprecated decorator (at leas on py2.7) does not work when paired > @property > > For deprecated instance variables, our deprecation policy recommend > converting them into properties a

Re: [Twisted-Python] How to get the class of the wrapped fget/fset property methods

2015-11-22 Thread Glyph Lefkowitz
> On Nov 22, 2015, at 07:04, Adi Roiban wrote: > > The @deprecated decorator (at leas on py2.7) does not work when paired > @property > > For deprecated instance variables, our deprecation policy recommend > converting them into properties and emitted the warning from there. > It would be ni

[Twisted-Python] How to get the class of the wrapped fget/fset property methods

2015-11-22 Thread Adi Roiban
The @deprecated decorator (at leas on py2.7) does not work when paired @property For deprecated instance variables, our deprecation policy recommend converting them into properties and emitted the warning from there. It would be nice if we could use the standard @deprecated decorator here. The p