From: Tim Peters Date: Sat, 11 Aug 2001 01:06:35 +0000 (+0000) Subject: st_nested_scopes was uninitialized trash. Jeremy should fix in a better X-Git-Tag: v2.2a3~651 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff1f8521ace7449743f93e5de3d58752f42eca08;p=python st_nested_scopes was uninitialized trash. Jeremy should fix in a better way; see code comments. --- diff --git a/Python/compile.c b/Python/compile.c index 66cd00ab83..5e150c917d 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -4595,6 +4595,12 @@ symtable_init() if (st == NULL) return NULL; st->st_pass = 1; + + /* XXX Tim: Jeremy deleted the next line and everything went to hell. + XXX It should probably get fixed by getting rid of st_nested_scopes + XXX entirely. */ + st->st_nested_scopes = 1; + st->st_filename = NULL; if ((st->st_stack = PyList_New(0)) == NULL) goto fail;