Re:Using attrs for everything in Python
by RubyPinch on Thursday August 25, 2016 @05:50PM
(#12362774)
its "safe" to say that, like its also "safe" to say that <article> will be used to denote articles in HTML
Yes, decorators can do whatever they want, but, in practical usage I'd say a majority of decorator usages do not mutate the class/function significantly from its original typed-out intent (like, they don't often add 8+ methods to a class for example, but of course they can)
not literally "safe" to say.
Why is it safe to say that? Aren't decorators just syntax for higher-order functions?