diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-03-22 03:57:58 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-03-22 03:57:58 (GMT) |
commit | 2e2cded1b56cc5488f49d395b46131fd995b02bc (patch) | |
tree | 657d06d83a966b54cb0000aadd684d3fbaa3f7ee /Include/symtable.h | |
parent | 280e6bd742a50cf7f00739c7904f1b5aa66bdad9 (diff) | |
download | cpython-2e2cded1b56cc5488f49d395b46131fd995b02bc.zip cpython-2e2cded1b56cc5488f49d395b46131fd995b02bc.tar.gz cpython-2e2cded1b56cc5488f49d395b46131fd995b02bc.tar.bz2 |
Set the line number correctly for a nested function with an exec or
import *. Mark the offending stmt rather than the function def line.
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 6c4f284..315ce1f 100644 --- a/Include/symtable.h +++ b/Include/symtable.h @@ -46,6 +46,7 @@ typedef struct _symtable_entry { int ste_nested; /* true if scope is nested */ int ste_child_free; /* true if a child scope has free variables, including free refs to globals */ + int ste_opt_lineno; /* lineno of last exec or import * */ struct symtable *ste_table; } PySymtableEntryObject; |