Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Understanding Python Decorators. Parent comment
At it's most basic yes, but passing arguments to both the decorator and the decorated function are the real value of the article.
And there are examples, more than I need but they provide different ways of looking at the same thing that different people might find useful.
There are no comments on this comment yet.
At it's most basic yes, but passing arguments to both the decorator and the decorated function are the real value of the article.
And there are examples, more than I need but they provide different ways of looking at the same thing that different people might find useful.