From: Thomas Wouters Date: Wed, 23 May 2001 12:15:57 +0000 (+0000) Subject: Backport Jeremy's checkin 1.7: X-Git-Tag: v2.1.1c1~118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed53d874d5a24ae8ff4be2f9b8c9059da8d84429;p=thirdparty%2FPython%2Fcpython.git Backport Jeremy's checkin 1.7: 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. --- diff --git a/Lib/test/output/test_scope b/Lib/test/output/test_scope index af7fe31e2b9c..fcd4e7a9793f 100644 --- a/Lib/test/output/test_scope +++ b/Lib/test/output/test_scope @@ -17,3 +17,4 @@ test_scope 16. check leaks 17. class and global 18. verify that locals() works +19. var is bound and free in class