[Python-ideas] Default decorator?

Christian Heimes lists at cheimes.de
Thu Jan 17 02:14:18 CET 2008


Guido van Rossum wrote:
> Wasn't __build_class__ only in an early version of PEP 3115?

It's still in builtins as builtins.__build_class__ and it's used by
ceval for LOAD_BUILD_CLASS.

> The use case might come up a lot more if people take the argument
> annotations idea and run with it. They might want to add lots of
> annotations to lots of functions, and then have one convenient way to
> ensure all those functions are wrapped by something that actually uses
> the annotations for something (e.g. adaptation or type checking).

Right, the use cases will pop up once people start to use annotations a
lot. But does the use case really satisfy a new hook? Isn't a meta class
factory and a simple function enough?

Christian




More information about the Python-ideas mailing list