mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
Issue #9738: Document encodings of AST, compiler, parser and PyRun functions
This commit is contained in:
parent
dc2081f72b
commit
00676d1436
6 changed files with 109 additions and 47 deletions
|
|
@ -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 *);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue