diff options
Diffstat (limited to 'artima/python/super_external.py')
-rw-r--r-- | artima/python/super_external.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/artima/python/super_external.py b/artima/python/super_external.py new file mode 100644 index 0000000..3f4cb46 --- /dev/null +++ b/artima/python/super_external.py @@ -0,0 +1,9 @@ +def __init__(self): + print('calling __init__') + super().__init__() + +class C(object): + __init__ = __init__ + +if __name__ == '__main__': + c = C() |