From d9c8702c0fd5e1e92e47435b0f64be440b2d5165 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 31 Oct 2012 20:26:20 -0400 Subject: point errors related to nonlocals and globals to the statement declaring them (closes #10189) --- Include/symtable.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/symtable.h') 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 */ -- cgit v1.2.1