News for hackers. Stuff that matters.
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.
Re:Languages to improve your Python by rudolf0 on Tuesday October 13, 2015 @04:54PM (#10383408)
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.