commit | fc8eef3c78200593c9c70974e48ab859779c607a | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Fri Mar 28 12:11:56 2008 +0000 |
committer | Georg Brandl <georg@python.org> | Fri Mar 28 12:11:56 2008 +0000 |
tree | 6c1cddba98dad1770c0f22a08d88455d7dc7eeaa | |
parent | b9803421d231fc66489eafb45f6ae440010cacfc [diff] [blame] |
Patch #1810 by Thomas Lee, reviewed by myself: allow compiling Python AST objects into code objects in compile().
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 @@ 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);