On Fri, Nov 27, 2009 at 13:11, Marius Gedminas <mar...@gedmin.as> wrote: > Personally, I prefer Zope's syntax ("decorators" inside the class block) > to Python's (decorators above the class block), aesthetically.
Yes, but it doesn't work under Python 3. We don't need to remove the support for Python 2, though, we can have both. > I think so, with some caveats. E.g. something like > > class Interface(...): > > def __call__(...): > new_semantics = (sys._getframe(1).f_globals.get('__new_lookup__') > is zope.component.__future__.__new_lookup__) Looks reasonable to me. Could work. -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64 _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org 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 )