summaryrefslogtreecommitdiff
path: root/Include/symtable.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-10-31 20:26:20 -0400
committerBenjamin Peterson <benjamin@python.org>2012-10-31 20:26:20 -0400
commitd9c8702c0fd5e1e92e47435b0f64be440b2d5165 (patch)
tree088676ed2d61ff0991932d8cdf7ca27f28c27349 /Include/symtable.h
parenta889d801edab20b70dc8aba33763d76e82568250 (diff)
downloadcpython-git-d9c8702c0fd5e1e92e47435b0f64be440b2d5165.tar.gz
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 82f6269588..bb39273b0c 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 */