[Python-3000] Brainstorming: literal construction hooks

Nick Coghlan ncoghlan at gmail.com
Sat Apr 22 15:54:12 CEST 2006


Michael Urman wrote:
> There's a lot of holes to this story, including at least how these
> functions are registered, and which additional arguments (if any) are
> necessary. Shall we try to fill these holes in?

Answering without checking the source (which is undoubtedly a bad idea), but 
this sounds like something else that could be addressed if it was possible to 
either register an alternate AST compiler for a scope, or else get hold of an 
AST and recompile it. (The former works for modules and functions, the latter 
works only for functions)

Even if it was only a matter of some additional keyword arguments to compile 
and/or exec, it could at least be of benefit for plugin code or an interactive 
interpreter loop.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list