Author ezio.melotti
Recipients chris.jerdonek, docs@python, eric.araujo, ezio.melotti, ncoghlan
Date 2012-11-22.23:20:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1353626448.98.0.91127425084.issue15474@psf.upfronthosting.co.za>
In-reply-to
Content
The tutorial doesn't seem to mention decorators, do you think this should be covered there?
FWIW while explaining decorators I usually use 3 examples:
 1) a simple decorator that accepts a function, does something, and returns the same function;
 2) a decorator that defines and returns an inner function;
 3) a decorator factory, that defines two nested inner functions

Not sure if it's necessary to include the first example though.
History
Date User Action Args
2012-11-22 23:20:49ezio.melottisetrecipients: + ezio.melotti, ncoghlan, eric.araujo, chris.jerdonek, docs@python
2012-11-22 23:20:48ezio.melottisetmessageid: <1353626448.98.0.91127425084.issue15474@psf.upfronthosting.co.za>
2012-11-22 23:20:48ezio.melottilinkissue15474 messages
2012-11-22 23:20:48ezio.melotticreate