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
+33 661 58 14 64
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -