def recreate_field(unbound):
 if (not isinstance(unbound, UnboundField)):
  raise ValueError(('recreate_field expects UnboundField instance, %s was passed.' % type(unbound)))
 return unbound.field_class(*unbound.args, **unbound.kwargs)

def recreate_field ( unbound ) : if ( not isinstance ( unbound , UnboundField ) ) : raise ValueError ( ( 'recreate_field expects UnboundField instance, %s was passed.' % type ( unbound ) ) ) return unbound . field_class ( * unbound . args , ** unbound . kwargs )
create new instance of the unbound field .