Issue #9738: Document encodings of AST, compiler, parser and PyRun functions

This commit is contained in:
Victor Stinner 2010-12-27 01:49:31 +00:00
parent dc2081f72b
commit 00676d1436
6 changed files with 109 additions and 47 deletions

View file

@ -30,8 +30,12 @@ typedef struct {
struct _mod; /* Declare the existence of this type */
#define PyAST_Compile(mod, s, f, ar) PyAST_CompileEx(mod, s, f, -1, ar)
PyAPI_FUNC(PyCodeObject *) PyAST_CompileEx(struct _mod *, const char *,
PyCompilerFlags *, int, PyArena *);
PyAPI_FUNC(PyCodeObject *) PyAST_CompileEx(
mod_ty mod,
const char *filename, /* decoded from the filesystem encoding */
PyCompilerFlags *flags,
int optimize,
PyArena *arena);
PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);