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