new(vs init(instance construction example (contd class class xx is still derived from the root class object def __new__cls )the param 'clsset to the name of the class print("__new__ invoked"return object __new__cls def __init__self )print("__init__ invoked"test code xobj (printx __dict__ printdir(xprintdirxobj purdue university __new__ invoked __init__ invoked {'__module__''__main__''__new__'['__class__','__delattr__''__getattribute__''__hash__''__init__''__module__''__new__'['__class__''__delattr__''__getattribute__''__hash__''__init__''__module__''__new__'