[Python-Dev] Re: new syntax for wrapping (PEP 318)
Bob Ippolito
bob at redivi.com
Thu Feb 26 12:38:04 EST 2004
On Feb 26, 2004, at 12:14 PM, Phillip J. Eby wrote:
> At 10:51 PM 2/25/04 -0500, Bob Ippolito wrote:
>> Not having this syntax requires A WHOLE !@#$*( lot of verbosity and
>> repetition, or drastic measures such as alternative compilers
>> (Quixote) or really awful terrible introspection hacks (PEAK does
>> stack introspection).
>
> Actually, that's only for class decoration. PEAK does method
> decoration the old fashioned way, i.e.:
>
> class Something:
> def aMethod(self):
> ....
>
> aMethod = binding.Make(aMethod)
>
> So, an accepted function decorator syntax will make this sort of thing
> clearer for PEAK as well.
Thanks for correcting me here, I was indeed referring to class
decoration using stack introspection. The currently-being-debated
patch includes this as well with the same syntax.
-bob
More information about the Python-Dev
mailing list