Using Python decorators
Stian Søiland has a nice tutorial/intro up covering Decorators in Python:
Decorators make an easy way to tag or wrap functions and methods as they are defined, providing extra functionality without much code duplication.
One of the reasons I liked Python was the lack of decorators, so I’m wasn’t a huge fan of them being added. They just seem so… Perl-ish. But it looks like they are here to stay, and can be useful in some cases.
