opensubscriber
   Find in this group all groups
 
Unknown more information…

i : interface-dev@zope.org 7 April 2009 • 7:29PM -0400

[Interface-dev] Decorator naming
by Lennart Regebro

REPLY TO AUTHOR
 
REPLY TO GROUP




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_of(IFoo)
@implementerOf(IFoo)
@only_implementer(IFoo)
@onlyImplementer(IFoo)
@implementer_only(IFoo)
@implementerOnly(IFoo)
@implementer(IFoo, inherit=False)
@implementer(only=IFoo)

--
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
_______________________________________________
Interface-dev mailing list
Interface-dev@zope...
http://mail.zope.org/mailman/listinfo/interface-dev

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.