On Tue, Aug 11, 2009 at 10:22 AM, bob gailer<[email protected]> 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 - [email protected] http://mail.python.org/mailman/listinfo/tutor
