[Python-Dev] Re: [Python-checkins] python/nondist/peps pep-0318.txt, 1.25, 1.26

Neil Schemenauer nas at arctrix.com
Tue Aug 24 22:58:58 CEST 2004


On Tue, Aug 24, 2004 at 02:59:33PM -0500, Skip Montanaro wrote:
> Couldn't you do something like this?
> 
>     @ast_to_func
>     @neils_cool_ast_transform
>     @func_to_ast
>     def f(a):
>         pass

That doesn't work as there is, AFAIK, no way to write func_to_ast().
The necessary information has already been thrown away when it gets
called.

  Neil


More information about the Python-Dev mailing list