super(B,self).do_work()
calls the function do_work, as shown in the parent class B, that is A.do_work.
super(A,self).do_work()
will call the function do_work, as shown by the parent class A, i.e. object.do_work(which probably does not exist, and probably can throw an exception).
source
share