Metaprogramming with Python decorators

David Mertz takes a look at Python decorators:

With version 2.2, Python grew a custom metaclass mechanism that went a long way, but at the cost of melting users’ brains. More recently, with version 2.4, Python has grown “decorators,” which are the newest — and by far the most user-friendly way, so far — to perform most metaprogramming.

Not for beginners, but definitely worth checking out.

Leave a Reply