parameters: (orig, dest, names, only_if_set=False)
docstring: copy class attributes from an object to another
docstring_summary: copy class attributes from an object to another
docstring_tokens: copy class attributes from an object to another
function: def copy_attrs(orig, dest, names, only_if_set=False):
  	"""
  	copy class attributes from an object to another
  	"""
  	for a in Utils.to_list(names):
  		u = getattr(orig, a, ())
  		if u or not only_if_set:
  			setattr(dest, a, u)
function_tokens: def copy_attrs ( orig , dest , names , only_if_set = False ) : for a in Utils . to_list ( names ) : u = getattr ( orig , a , ( ) ) if u or not only_if_set : setattr ( dest , a , u )