Ezio Melotti added the comment:

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.


Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list

Reply via email to