You have seen lines such as @property and @classmethod above a def. They are decorators, and now you know enough to understand exactly what they are: functions that take a function and return a function. A decorator lets you add behaviour, such as logging, timing or checking, to a function without changing its code, and without repeating the extra code in every function that needs it.
More lessons in Complete Python Programming