[Interface-dev] Decorator naming

Jim Fulton jim at zope.com
Tue Apr 7 13:49:30 EDT 2009


On Apr 7, 2009, at 7:29 AM, Lennart Regebro wrote:

> In the Python 3 porting effort, I have now reached the place where the
> @implementor(IFoo) decorator seems to work.
> Next step is to make a decorator for implementsOnly.
>
> But I don't know what to call that decorator. Here is some
> possibilities, in roughly the order of how much i dislike them, from
> quite a lot to even more. :) Better suggestions are very welcome.

...

>
> @implementer(IFoo, inherit=False)

+1

Jim

--
Jim Fulton
Zope Corporation




More information about the Interface-dev mailing list