test_scope 602 Bytes
Newer Older
Jeremy Hylton's avatar
Jeremy Hylton committed
1 2 3 4 5 6 7 8 9 10 11 12 13
test_scope
1. simple nesting
2. extra nesting
3. simple nesting + rebinding
4. nesting with global but no free
5. nesting through class
6. nesting plus free ref to global
7. nearest enclosing scope
8. mixed freevars and cellvars
9. free variable in method
10. recursion
11. unoptimized namespaces
12. lambdas
14
13. UnboundLocal
15
14. complex definitions
16
15. scope of global statements
17
16. check leaks
18 19
17. class and global
18. verify that locals() works
20
19. var is bound and free in class
21
20. interaction with trace function
22
20. eval and exec with free variables
23
21. list comprehension with local variables