def _type_reconstructor(reconstructor, reconstructor_args, state):
 obj = reconstructor(*reconstructor_args)
 if state:
  obj.__dict__.update(state)
 return type(obj)._intern(obj)

def _type_reconstructor ( reconstructor , reconstructor_args , state ) : obj = reconstructor ( * reconstructor_args ) if state : obj . __dict__ . update ( state ) return type ( obj ) . _intern ( obj )
rebuild function for unpickling types .