micropython

Annotated tests/failure/instance_initialisation_incomplete.py

288:54a2867eb465
2009-11-23 Paul Boddie Added attribute usage registration for branches where more specific attribute usage occurs, but where such usage cannot be merged back into the active usage definition for a given name. This should ensure that attributes are not forgotten because their usage was not merged and carried forward. Added more specific tests.
paul@273 1
#!/usr/bin/env python
paul@273 2
paul@273 3
class C:
paul@273 4
    pass
paul@273 5
paul@273 6
class D:
paul@273 7
    def __init__(self):
paul@273 8
        pass
paul@273 9
paul@273 10
class E:
paul@273 11
    def __init__(self, x):
paul@273 12
        pass
paul@273 13
paul@273 14
c = C()
paul@273 15
d = D()
paul@273 16
e = E()
paul@273 17
paul@273 18
# vim: tabstop=4 expandtab shiftwidth=4