summaryrefslogtreecommitdiffstats
path: root/Include/symtable.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-11-01 00:26:20 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-11-01 00:26:20 (GMT)
commitd9c8702c0fd5e1e92e47435b0f64be440b2d5165 (patch)
tree088676ed2d61ff0991932d8cdf7ca27f28c27349 /Include/symtable.h
parenta889d801edab20b70dc8aba33763d76e82568250 (diff)
downloadcpython-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.h1
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 */