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, add to the above:

  return func

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to