fork(1) download
  1. def super(*args, **kwargs):
  2. print(args, kwargs)
  3.  
  4. class A:
  5. def f(self):
  6. return self
  7.  
  8. def g(self):
  9. pass
  10.  
  11. class B(A):
  12. def f(self):
  13. super().g()
  14.  
  15. B().f()
Runtime error #stdin #stdout #stderr 0.02s 8696KB
stdin
Standard input is empty
stdout
() {}
stderr
Traceback (most recent call last):
  File "./prog.py", line 15, in <module>
  File "./prog.py", line 13, in f
AttributeError: 'NoneType' object has no attribute 'g'