Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 19160:9d024ae05837 legacy-trunk
st_nested_scopes was uninitialized trash. Jeremy should fix in a better
way; see code comments.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Sat, 11 Aug 2001 01:06:35 +0000 |
| parents | 97a3d3d7029f |
| children | 50f88ee71d45 |
line wrap: on
line diff
--- a/Python/compile.c Fri Aug 10 22:14:17 2001 +0000 +++ b/Python/compile.c Sat Aug 11 01:06:35 2001 +0000 @@ -4595,6 +4595,12 @@ 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;
