Kent Johnson wrote:
On Tue, Aug 11, 2009 at 10:22 AM, bob gailer<bgai...@gmail.com> wrote:
Decorator functions:
def collect(func):
'a "decorator" that adds each function to the cmds list'
cmds.append((func.__name__, func))
Decorators must return a callable
The docs indeed say that, but the interpreter does not enforce it. My
example works as I designed it.
--
Bob Gailer
Chapel Hill NC
919-636-4239
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor