diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-11-01 00:26:20 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-11-01 00:26:20 (GMT) |
commit | d9c8702c0fd5e1e92e47435b0f64be440b2d5165 (patch) | |
tree | 088676ed2d61ff0991932d8cdf7ca27f28c27349 /Include/symtable.h | |
parent | a889d801edab20b70dc8aba33763d76e82568250 (diff) | |
download | cpython-d9c8702c0fd5e1e92e47435b0f64be440b2d5165.zip cpython-d9c8702c0fd5e1e92e47435b0f64be440b2d5165.tar.gz cpython-d9c8702c0fd5e1e92e47435b0f64be440b2d5165.tar.bz2 |
point errors related to nonlocals and globals to the statement declaring them (closes #10189)
Diffstat (limited to 'Include/symtable.h')
-rw-r--r-- | Include/symtable.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/symtable.h b/Include/symtable.h index 82f6269..bb39273 100644 --- a/Include/symtable.h +++ b/Include/symtable.h @@ -39,6 +39,7 @@ typedef struct _symtable_entry { PyObject *ste_name; /* string: name of current block */ PyObject *ste_varnames; /* list of function parameters */ PyObject *ste_children; /* list of child blocks */ + PyObject *ste_directives;/* locations of global and nonlocal statements */ _Py_block_ty ste_type; /* module, class, or function */ int ste_unoptimized; /* false if namespace is optimized */ int ste_nested; /* true if block is nested */ |