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.

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

The URI to TrackBack this entry is: https://codepoetry.wordpress.com/2010/02/09/python-decorators-dont-have-to-be-that-scary-siafoo/trackback/

RSS feed for comments on this post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: