Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff1f852

Browse files
committed
st_nested_scopes was uninitialized trash. Jeremy should fix in a better
way; see code comments.
1 parent 1cf0f17 commit ff1f852

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Python/compile.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4595,6 +4595,12 @@ symtable_init()
45954595
if (st == NULL)
45964596
return NULL;
45974597
st->st_pass = 1;
4598+
4599+
/* XXX Tim: Jeremy deleted the next line and everything went to hell.
4600+
XXX It should probably get fixed by getting rid of st_nested_scopes
4601+
XXX entirely. */
4602+
st->st_nested_scopes = 1;
4603+
45984604
st->st_filename = NULL;
45994605
if ((st->st_stack = PyList_New(0)) == NULL)
46004606
goto fail;

0 commit comments

Comments
 (0)