[Python-Dev] Enable access to the AST for Python code

Greg Ewing greg.ewing at canterbury.ac.nz
Fri May 22 01:33:10 CEST 2015


Steve Dower wrote:
> It's only a macro system when you generate code in unexpected/unobvious 
> places with it. This is more like inspect.getsource(), but going 
> straight to the AST.

Is it really that much different? The end result is
the same -- the user writes something that looks like
a Python expression, but it gets evaluated using some
other set of semantics that can be arbitrarily different
from Python's.

-- 
Greg


More information about the Python-Dev mailing list