mk <mrk...@gmail.com> wrote: > Note that function decorator returned None, while class decorator > returned function. > > Why the difference in behavior? After all, print_method_name decorator > also returns a function (well it's a new function but still a function)?
That would be because the function decorator returns the result of calling the function whereas your class decorator simply returns the function without calling it. -- http://mail.python.org/mailman/listinfo/python-list