micropython

Annotated tests/failure/shadow_globals_builtins.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@342 3
i = 2
paul@342 4
while i > 0:
paul@342 5
    c = len([3, 4, 5]) # right hand side name changes origin
paul@339 6
paul@342 7
    def len(a):
paul@342 8
        return a
paul@339 9
paul@342 10
    i -= 1
paul@342 11
paul@342 12
result_2 = len(2)
paul@339 13
paul@339 14
# vim: tabstop=4 expandtab shiftwidth=4