Re: improving the utility and adapter lookup APIs
Lennart Regebro <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Nov 25, 2009 at 16:41, Martijn Faassen <[email protected]> wrote: > As a final thought, I don't like having to import 'implements' from > zope.interface either. Since we're moving to Python 2.6 which supports > class decorators, I'd like to see something like this become possible: > > @IFoo.implements > class Foo(object): > pass Yuck! That said, it would be easy to implement (haha) if people really want in together with @implemeter(IFoo) Which I have to say I prefer. > If we do well we might all have this for Christmas. :) Time to clean up that branch of zope.interface I have, I see. :) -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64 _______________________________________________ Zope-Dev maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )