Re:Languages to improve your Python
by chc on Tuesday October 13, 2015 @11:10AM
(#10380969)
That seems like a pretty fair label for what decorators do.
[ Parent
| on HN ]
They are a form of metaprogramming, but other than decorators, Python generally discourages other kinds of metaprogramming. Metaclasses are reserved for very specific use-cases, and monkey patching or re-opening class definitions are almost always considered anti-patterns.