Python Decorators Don’t Have to be (that) Scary – Siafoo

Decorators modify functions. Beginning with the basics, learn how to use decorators in a variety of ways. Execute code when a function is parsed or called. Conditionally call functions and transform inputs and outputs. Write customizable decorators that accept arbitrary arguments. And, if necessary, easily make sure your decorated function has the same signature as the original.

via Python Decorators Don’t Have to be (that) Scary – Siafoo.

Published in: on February 9, 2010 at 9:38 pm  Leave a Comment