diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-26 19:42:26 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-26 19:42:26 (GMT) |
commit | bd260da900b5c5f16e5c61f6795d08171b33e0f8 (patch) | |
tree | 0880faf7b6da37250984d1a0e6e6c5a0faa25f06 /Include | |
parent | 23b0dc50535d7eaf2f322b04da7a7f86815fcc8f (diff) | |
download | cpython-bd260da900b5c5f16e5c61f6795d08171b33e0f8.zip cpython-bd260da900b5c5f16e5c61f6795d08171b33e0f8.tar.gz cpython-bd260da900b5c5f16e5c61f6795d08171b33e0f8.tar.bz2 |
Generate code to recursively copy an AST into
a tree of Python objects. Expose this through compile().
Diffstat (limited to 'Include')
-rw-r--r-- | Include/Python-ast.h | 1 | ||||
-rw-r--r-- | Include/pythonrun.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Include/Python-ast.h b/Include/Python-ast.h index 4dfaef8..3f07452 100644 --- a/Include/Python-ast.h +++ b/Include/Python-ast.h @@ -404,3 +404,4 @@ arguments_ty arguments(asdl_seq * args, identifier vararg, identifier kwarg, keyword_ty keyword(identifier arg, expr_ty value, PyArena *arena); alias_ty alias(identifier name, identifier asname, PyArena *arena); +PyObject* PyAST_mod2obj(mod_ty t); diff --git a/Include/pythonrun.h b/Include/pythonrun.h index 446133a..a18a4e2 100644 --- a/Include/pythonrun.h +++ b/Include/pythonrun.h @@ -11,6 +11,7 @@ extern "C" { #define PyCF_MASK_OBSOLETE (CO_NESTED) #define PyCF_SOURCE_IS_UTF8 0x0100 #define PyCF_DONT_IMPLY_DEDENT 0x0200 +#define PyCF_ONLY_AST 0x0400 typedef struct { int cf_flags; /* bitmask of CO_xxx flags relevant to future */ |