[Twisted-Python] How to get the class of the wrapped fget/fset property methods
Adi Roiban
adi at roiban.ro
Sun Nov 22 05:04:17 MST 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20151122/7a83ec7f/attachment.html>
More information about the Twisted-Python
mailing list