2008-06-22 | Paul Boddie | raw annotate files changeset graph | Fixed CheckSelf generation (using only the first argument of an invocation). Overhauled stack usage by incorporating stack accesses and results in many instructions, calculating usage as instructions are added and removed. Removed ResetStack since the stack should now be a detail in the compilation process. Introduced a StackReplace mix-in in order to more correctly model various instructions. |
1 #!/usr/bin/env python 2 3 import imported 4 5 imported.attr = 456 # detected with warning 6 7 m = imported 8 imported.a = 9 # detected with warning 9 m.a = 8 # detected with warning (m is always imported) 10 11 imported.x = 1 # detected with warning (despite no collision) 12 13 n = None 14 n = imported 15 n.y = 2 # not detected due to reassignment of n 16 n.y = 3 # not detected due to reassignment of n 17 18 # vim: tabstop=4 expandtab shiftwidth=4