Python decorators are functions that take in a function or class as an argument, and return a modified version. A commonly used example is the dataclasses.dataclass() function that takes a class ...
David Mertz works with Python decorators in an IBM developerWorks article. "Python made metaprogramming possible, but each Python version has added slightly different -- and not quite compatible -- ...