[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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant