micropython

Annotated tests/changed/__init__.py

579:9df30d738ec1
2012-07-07 Paul Boddie Filter out __init__.py files when looking for submodule files.
paul@557 1
#!/usr/bin/env python
paul@557 2
paul@578 3
class C:
paul@578 4
    p = 123
paul@578 5
paul@578 6
class D:
paul@578 7
    p = 456
paul@578 8
paul@557 9
def f():
paul@557 10
    import changed.modifier
paul@557 11
paul@557 12
def getx():
paul@578 13
    return x.p # ambiguous
paul@557 14
paul@578 15
x = C
paul@557 16
f() # import modifier which changes x in this module
paul@557 17
paul@557 18
# vim: tabstop=4 expandtab shiftwidth=4