[Python-ideas] Default decorator?

Christian Heimes lists at cheimes.de
Thu Jan 17 02:19:29 CET 2008

Guido van Rossum wrote:
> Those are indeed the main reasons for wanting something built-in
> rather than something that scans a module's namespace -- the idea
> being that within the scope of the declaration *every* def and lambda
> gets passed to this hook first (and the hook can pass on anything that
> doesn't have annotations, for example).

Ah! Ok ... I got it. It sounds like a job for a new builtin
__build_funcion__ which is called for the opcode MAKE_FUNCTION.


More information about the Python-ideas mailing list