diff options
author | Georg Brandl <georg@python.org> | 2008-03-28 12:11:56 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-28 12:11:56 (GMT) |
commit | fc8eef3c78200593c9c70974e48ab859779c607a (patch) | |
tree | 6c1cddba98dad1770c0f22a08d88455d7dc7eeaa /Include/Python-ast.h | |
parent | b9803421d231fc66489eafb45f6ae440010cacfc (diff) | |
download | cpython-fc8eef3c78200593c9c70974e48ab859779c607a.zip cpython-fc8eef3c78200593c9c70974e48ab859779c607a.tar.gz cpython-fc8eef3c78200593c9c70974e48ab859779c607a.tar.bz2 |
Patch #1810 by Thomas Lee, reviewed by myself:
allow compiling Python AST objects into code objects
in compile().
Diffstat (limited to 'Include/Python-ast.h')
-rw-r--r-- | Include/Python-ast.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/Python-ast.h b/Include/Python-ast.h index a1033ee..8be26f2 100644 --- a/Include/Python-ast.h +++ b/Include/Python-ast.h @@ -501,3 +501,5 @@ keyword_ty _Py_keyword(identifier arg, expr_ty value, PyArena *arena); alias_ty _Py_alias(identifier name, identifier asname, PyArena *arena); PyObject* PyAST_mod2obj(mod_ty t); +mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena); +int PyAST_Check(PyObject* obj); |