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 problem is that when property are used the fget/fset are received by
the @deprecated wrapper as functions and not as methods

Is there a way to get the class in which a property is defined... or there
is no way to use the @deprecated decorator with the @property .. and we
should create a dedicated deprecatedMember method which is called as a
normal method.

Thanks!
-- 
Adi Roiban
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to