Re: implementing zope.component 4.0

Lennart Regebro <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On Fri, Nov 27, 2009 at 13:11, Marius Gedminas <[email protected]> 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  -  [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 )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.