def _newInstance(cls, state):
 instance = _createBlank(cls)
 def defaultSetter(state):
  instance.__dict__ = state
 setter = getattr(instance, '__setstate__', defaultSetter)
 setter(state)
 return instance

def _newInstance ( cls , state ) : instance = _createBlank ( cls ) def defaultSetter ( state ) : instance . __dict__ = state setter = getattr ( instance , '__setstate__' , defaultSetter ) setter ( state ) return instance
make a new instance of a class without calling its __init__ method .