On Wednesday, 12 September 2012 07:58:10 UTC+5:30, pyjoshsys wrote: > I'm trying to call SetName on an object to prevent me from ever having to > call it explictly again on that object. Best explained by example. > [snip] In your decorator, you are using `yield cls` - it should be `return cls` 99.99% of the time. -- http://mail.python.org/mailman/listinfo/python-list
- generators as decorators simple issue j . m . dagenhart
- Re: generators as decorators simple issue Ramchandra Apte
- Re: generators as decorators simple issue alex23
- Re: generators as decorators simple issue Thomas Rachel
- Re: generators as decorators simple issue pyjoshsys
- Re: generators as decorators simple issue Oscar Benjamin
- Re: generators as decorators simple issue Ian Kelly
- Re: generators as decorators simple issue pyjoshsys