Message166600
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:07 | eric.araujo | set | recipients:
+ eric.araujo, ncoghlan, docs@python |
2012-07-27 19:10:07 | eric.araujo | set | messageid: <1343416207.69.0.71696747041.issue15474@psf.upfronthosting.co.za> |
2012-07-27 19:10:07 | eric.araujo | link | issue15474 messages |
2012-07-27 19:10:06 | eric.araujo | create | |
|