mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
|
|
@ -16,7 +16,8 @@ typedef enum _block_type { FunctionBlock, ClassBlock, ModuleBlock }
|
|||
struct _symtable_entry;
|
||||
|
||||
struct symtable {
|
||||
const char *st_filename; /* name of file being compiled */
|
||||
const char *st_filename; /* name of file being compiled,
|
||||
decoded from the filesystem encoding */
|
||||
struct _symtable_entry *st_cur; /* current symbol table entry */
|
||||
struct _symtable_entry *st_top; /* symbol table entry for module */
|
||||
PyObject *st_blocks; /* dict: map AST node addresses
|
||||
|
|
@ -60,8 +61,10 @@ PyAPI_DATA(PyTypeObject) PySTEntry_Type;
|
|||
|
||||
PyAPI_FUNC(int) PyST_GetScope(PySTEntryObject *, PyObject *);
|
||||
|
||||
PyAPI_FUNC(struct symtable *) PySymtable_Build(mod_ty, const char *,
|
||||
PyFutureFeatures *);
|
||||
PyAPI_FUNC(struct symtable *) PySymtable_Build(
|
||||
mod_ty mod,
|
||||
const char *filename, /* decoded from the filesystem encoding */
|
||||
PyFutureFeatures *future);
|
||||
PyAPI_FUNC(PySTEntryObject *) PySymtable_Lookup(struct symtable *, void *);
|
||||
|
||||
PyAPI_FUNC(void) PySymtable_Free(struct symtable *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue