[PEAK] Declaration of method decorators in protocols.Interface

Phillip J. Eby pje at telecommunity.com
Thu Mar 16 14:22:28 EST 2006


At 07:35 PM 3/16/2006 +0100, fifi wrote:
>Is it possible to declare decorators of methods for interfaces?

Certainly.  But they have no effect on the implementations.


>My point is
>that the decorators, such as returns, accepts,.. would be declared on one
>place and all classes implementing the interface would also aquire the
>decorators.

They don't.  But you could write a metaclass to do something like this, if 
you wanted.




More information about the PEAK mailing list