micropython

Annotated tests/failure/shadow_locals_globals_if.py

579:9df30d738ec1
2012-07-07 Paul Boddie Filter out __init__.py files when looking for submodule files.
paul@343 1
#!/usr/bin/env python
paul@343 2
paul@343 3
a = 1
paul@343 4
paul@343 5
def reassign(i):
paul@343 6
    if i:
paul@343 7
        a = a
paul@343 8
    return a # name has varying origin
paul@343 9
paul@343 10
result2_1 = reassign(3)
paul@343 11
paul@343 12
# vim: tabstop=4 expandtab shiftwidth=4