[New-bugs-announce] [issue1810] Partial AST compile() patch
Thomas Lee
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
files: ast-r01.patch
messages: 59764
nosy: thomas.lee
severity: normal
status: open
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>
<http://bugs.python.org/issue1810>
__________________________________
More information about the New-bugs-announce
mailing list