]> granicus.if.org Git - python/commit
SF bug #488687 reported by Neal Norwitz
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Dec 2001 02:41:46 +0000 (02:41 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Dec 2001 02:41:46 +0000 (02:41 +0000)
commit86424e333f1736591114da975c8d2926ba6f51f5
tree6bc48e16d500640a0f448eac30521a3c24337159
parent22a51efc1cb9b3d5c945bf90fd8906306c367604
SF bug #488687 reported by Neal Norwitz

The error for assignment to __debug__ used ste->ste_opt_lineno instead
of n->n_lineno.  The latter was at best incorrect; often the slot was
uninitialized.  Two fixes here: Use the correct lineno for the error.
Initialize ste_opt_lineno in PySymtable_New(); while there are no
current cases where it is referenced unless it has already been
assigned to, there is no harm in initializing it.
Python/compile.c
Python/symtable.c