[Tutor] Modify inherited methods

C M Caine cmcaine at googlemail.com
Tue Apr 27 23:24:48 CEST 2010

I'm writing a class that inherits the inbuilt dict class and want some
of my own code to run at initialisation, on the other hand, I still
want the original dict.__init__ function to run. Can I ask the class
to run the original __init__ and then my own function at
initialisation automatically? If so, how?

Colin Caine

More information about the Tutor mailing list