micropython

Annotated tests/failure/instance_initialisation_incomplete.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@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