Mercurial > cpython-lru_cache-weakref
diff Python/symtable.c @ 65393:3618d9d7902d 3.1
Merged revisions 85562 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85562 | benjamin.peterson | 2010-10-15 22:45:45 -0500 (Fri, 15 Oct 2010) | 1 line
don't identify the toplevel namespace by name #9997
........
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sat, 16 Oct 2010 03:49:22 +0000 |
| parents | f197407bdba2 |
| children | 8e6b7ab1e1a1 |
line wrap: on
line diff
--- a/Python/symtable.c Sat Oct 16 00:47:23 2010 +0000 +++ b/Python/symtable.c Sat Oct 16 03:49:22 2010 +0000 @@ -923,7 +923,7 @@ st->st_cur = ste_new(st, name, block, ast, lineno); if (st->st_cur == NULL) return 0; - if (name == GET_IDENTIFIER(top)) + if (block == ModuleBlock) st->st_global = st->st_cur->ste_symbols; if (prev) { if (PyList_Append(prev->ste_children,
