Revised PEP 318 - Function/Method Decorator Syntax
Michele Simionato
mis6 at pitt.edu
Wed Jun 11 10:58:35 EDT 2003
bokr at oz.net (Bengt Richter) wrote in message news:<bc5nko$4c9$0 at 216.39.172.122>...> syncmeth = (synchronized(lock), classmethod)
> def foo(self) as syncmeth:
> perform method operation
>
> Is it reasonable to think of this mechanism as a kind of meta-classes for functions?
> Is there some unification that should not be painted out of the future?
>
> Regards,
> Bengt Richter
Looks like an interesting idea. Do you have any further thought on that?
Michele
More information about the Python-list
mailing list