]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix 2.1 nested scopes crash reported by Evan Simpson
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 27 Apr 2001 02:29:40 +0000 (02:29 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 27 Apr 2001 02:29:40 +0000 (02:29 +0000)
commitddc4fd03b1eadeab65f8e0dbf5b6f386ed419fbc
tree288c1648ee28f097444e9926b037e0295df0c71b
parent960d948e7ce536eb30b69add0c6fc2dc31c90a8e
Fix 2.1 nested scopes crash reported by Evan Simpson

The new test case demonstrates the bug.  Be more careful in
symtable_resolve_free() to add a var to cells or frees only if it
won't be added under some other rule.

XXX Add new assertion that will catch this bug.
Lib/test/output/test_scope
Lib/test/test_scope.py
Python/compile.c