Re: [Python-Dev] possible use of __decorates__ in functools.decorator

2006-05-09 Thread Luis P Caamano
Turns out I didn't need to use the __decorates__ attribute to get the name of the class. I posted on clp (what I should've done in the first place) and got an answer back pretty quickly. After a duh!, hitting my forehead and a couple "of couse" comments, it was as simple as saving the original ca

[Python-Dev] possible use of __decorates__ in functools.decorator

2006-05-07 Thread Luis P Caamano
In a previous post related to the functools.decorator function, I think Nick was wondering if the __decorator__ and __decorates__ attributes were useful and Guido was tempted to call YAGNI on them. Coincidentally, I've run into a situation where I had to use the __decorates__ attribute, which I'd