[Python-Dev] Implementing restricted Python in Zope2

"Martin v. Löwis" martin at v.loewis.de
Fri Jul 18 06:24:12 CEST 2008


> I would like to know how much the AST have been changed on moving from
> python2.4 to python 2.5 so that I can bring the corresponding changes
> in Zope2 to get it adapted to those changes in the AST. 

Notice that Parser/Python.asdl is new in Python 2.5, so (by today's
terminology) Python 2.4 did not really have any AST. The relevant NEWS
entry is

- A new AST parser implementation was completed. The abstract
  syntax tree is available for read-only (non-compile) access
  to Python code; an _ast module was added.

Python's prior notion of abstract syntax (which is rather a CST)
directly reflects from the grammar; do

  svn log Grammar/Grammar

to find out what exactly was changed.

Regards,
Martin


More information about the Python-Dev mailing list