O'Reilly logo
  • You Wang thinks this is interesting:

Python decorators—similar to the notion and syntax of annotations in Java—both addressed this specific need and provided a general tool for adding logic that manages both functions and classes, or later calls to them.


Cover of Learning Python, 5th Edition


add wrapper logic to functions and classes in a simple syntax