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 <1343416207.69.0.71696747041.issue15474@psf.upfronthosting.co.za>
In-reply-to
Content
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.)
History
Date User Action Args
2012-07-27 19:10:07eric.araujosetrecipients: + eric.araujo, ncoghlan, docs@python
2012-07-27 19:10:07eric.araujosetmessageid: <1343416207.69.0.71696747041.issue15474@psf.upfronthosting.co.za>
2012-07-27 19:10:07eric.araujolinkissue15474 messages
2012-07-27 19:10:06eric.araujocreate