2 ms·
Beware when you use with metaprogramming goals, subtle piece of data might get "lost": http://apiguy.github.io/blog/2013/06/03/the-dark-side-of-decorators/ http
by agumonkey 11y ago
Beware when you use with metaprogramming goals, subtle piece of data might get "lost": http://apiguy.github.io/blog/2013/06/03/the-dark-side-of-decorators/ http://apiguy.github.io/blog/2013/06/03/the-dark-side-of-dec...
- celias 11y agoThere's also Graham Dumpleton's "How you implemented your Python decorator is wrong" blog post - http://blog.dscpl.com.au/2014/01/how-you-implemented-your-python.html http://blog.dscpl.com.au/2014/01/how-you-implemented-your-py... and the related "Decorators and monkey patching" list http://blog.dscpl.com.au/p/decorators-and-monkey-patching.html http://blog.dscpl.com.au/p/decorators-and-monkey-patching.ht...
- agentultra 11y agoThe introspection argument is rather difficult... do I intend to see the descriptor of the wrapped function or the signature of the wrapper? In the case of stacked decorators it can get a little murky.