generators as decorators simple issue

pyjoshsys j.m.dagenhart at gmail.com
Wed Sep 12 07:15:10 EDT 2012


so decorators only pass the object and not any instance of the object as the implied argument? Is this right?

The idea was to use @setname instead of instance.SetName(instance.__name__).

I thought decorators would do this, but it seems not.










More information about the Python-list mailing list