python code because of these downsidesthis book prefers to call superclasses by explicit name instead of superrecommends the same policy for newcomersand defers presenting super until it' usually best judged after you learn the simplerand generally more traditional and "pythonicways of achieving the same goalsespecially if you're new to oop topics like mros and cooperative multiple inheritance dispatch seem lot to ask of beginners--and others and to any java programmers in the audiencei suggest resisting the temptation to use python' super until you've had chance to study its subtle implications once you step up to multiple inheritanceit' not what you think it isand more than you probably expect the class it invokes may not be the superclass at alland can even vary per context or to paraphrase movie linepython' super is like box of chocolates--you never know what you're going to getpolymorphism in action to make this acquisition of inherited behavior even more strikingwe can add the following code at the end of our file temporarilyif __name__ ='__main__'print('--all three--'for obj in (bobsuetom)obj giveraise print(objprocess objects generically run this object' giveraise run the common __repr__ here' the resulting outputwith its new parts highlighted in bold[personbob smith [personsue jones smith jones [personsue jones jones [persontom jones --all three-[personbob smith [personsue jones [persontom jones in the added codeobject is either person or managerand python runs the appropriate giveraise automatically--our original version in person for bob and sueand our customized version in manager for tom trace the method calls yourself to see how python selects the right giveraise method for each object this is just python' notion of polymorphismwhich we met earlier in the bookat work again--what giveraise does depends on what you do it to hereit' made all the more obvious when it selects from code we've written ourselves in classes the practical effect in this code is that sue gets another but tom gets another %because more realistic example