Author eric.araujo
Recipients docs@python, eric.araujo, ncoghlan
Date 2012-07-27.19:10:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Some of the confusion encountered when writing decorators arise from the difference between a decorator (@something) and a decorator factory (@something(args)).  It would help to adopt this clearer terminology in our docs: a decorator takes the decorated function as argument and does its business, a decorator factory takes some arguments and returns a decorator which wraps the decorated function.

(I think it was Nick who suggested this in a recent-ish mailing list thread.)
Date User Action Args
2012-07-27 19:10:07eric.araujosetrecipients: + eric.araujo, ncoghlan, docs@python
2012-07-27 19:10:07eric.araujosetmessageid: <>
2012-07-27 19:10:07eric.araujolinkissue15474 messages
2012-07-27 19:10:06eric.araujocreate