[New-bugs-announce] [issue1810] Partial AST compile() patch
report at bugs.python.org
Sat Jan 12 00:58:42 CET 2008
New submission from Thomas Lee:
This patch against HEAD provides the inverse operations to all the
ast2obj_* functions in Python/Python-ast.c: effectively, this allows
conversion to & from a PyObject representation of a Python AST.
Additionally, it updates the compile() builtin to allow it to compile
Python ASTs to bytecode.
The patch seems to work for most simple cases, but crashes out with a
segfault when trying to compile functions for some reason.
components: Interpreter Core
title: Partial AST compile() patch
versions: Python 2.6
Added file: http://bugs.python.org/file9134/ast-r01.patch
Tracker <report at bugs.python.org>
More information about the New-bugs-announce