On Tue, Jun 5, 2012 at 8:14 PM, Nick Coghlan <ncogh...@gmail.com> wrote:

> On reflection, I'm actually inclined to agree. The next version of the
> PEP will propose the addition of type.__decorate__(). This new method
> will be invoked *after* the class is created and the __class__ cell is
> populated, but *before* lexical decorators are applied.
>

Why not have type.__call__() do the invocation?  That is, why does it need
to become part of the external class-building protocol?

(One advantage to putting it all in type.__call__() is that you can emulate
the protocol in older Pythons more easily than if it's part of the external
class creation dance.)
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to