News for hackers. Stuff that matters.
Re:Introduction to Python Decorators by molbioguy on Wednesday September 21, 2011 @10:22AM (#3022080)
An excellent tutorial/answer about python decorators was posted on stack overflow:

http://stackoverflow.com/questions/739654/understanding-pyth...

Re:Introduction to Python Decorators by vessenes on Wednesday September 21, 2011 @11:11AM (#3022276)
I would replace "excellent" with "extremely thorough."

I would recommend the posted link for a first introduction -- it's short, explains decorators as clearly but more approachably, and talks about their application to classes, something the SO answer misses.

Re:Introduction to Python Decorators by sid6376 on Wednesday September 21, 2011 @12:35PM (#3022645)
Thanks for the link. As a python newbie, the way that helped me best was going through the stack overflow link and then the posted article. From what I understand its also important to understand when the decorator function is executed. Before or after the function it decorates.(I understand its also possible, that it executes both before and after). Is this understanding correct?
Re:Introduction to Python Decorators by xlm on Wednesday September 21, 2011 @11:09AM (#3022269)
Agreed, I read that one as well. What struck me was the link the author drew to LISP macros.