micropython

Annotated tests/failure/shadow_locals_globals.py

432:1964e5898e68
2011-06-14 Paul Boddie Fixed negation of operator method results in other operator methods. Added NotImplementedType as an automatically generated class.
paul@339 1
#!/usr/bin/env python
paul@339 2
paul@339 3
a = 1
paul@339 4
paul@339 5
def before():
paul@342 6
    i = 2
paul@342 7
    while i > 0:
paul@342 8
        b = a # right hand side name changes origin
paul@342 9
        a = 2
paul@342 10
        i -= 1
paul@339 11
    return b
paul@339 12
paul@339 13
result1_1 = before()
paul@339 14
paul@339 15
# vim: tabstop=4 expandtab shiftwidth=4