diff Include/Python-ast.h @ 46162:ca38f7a4b4c9 legacy-trunk

Patch #1810 by Thomas Lee, reviewed by myself: allow compiling Python AST objects into code objects in compile().
author Georg Brandl <georg@python.org>
date Fri, 28 Mar 2008 12:11:56 +0000
parents 393822f2ef90
children b0bf06d49647
line wrap: on
line diff
--- a/Include/Python-ast.h	Fri Mar 28 08:32:09 2008 +0000
+++ b/Include/Python-ast.h	Fri Mar 28 12:11:56 2008 +0000
@@ -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);