[Python-Dev] AST optimizer implemented in Python
Eric Snow
ericsnowcurrently at gmail.com
Sun Aug 12 02:16:12 CEST 2012
On Sat, Aug 11, 2012 at 6:03 PM, Brett Cannon <brett at python.org> wrote:
> It would also be very easy to expand importlib.abc.SourceLoader to add a
> method which is called with source and returns the bytecode to be written
> out
Yes, please. Not having to hack around this would be nice.
> which people could override with AST optimizations before sending the
> bytecode back. That way we don't have to get into the whole business of AST
> transformations if we don't want to (although, as Victor pointed out, there
> are some people who do want this formally supported).
Also cool.
-eric
More information about the Python-Dev
mailing list