def copy_attributes(source, destination, ignore_patterns=[]):
for attr in _wildcard_filter(dir(source), *ignore_patterns):<EOL><INDENT>setattr(destination, attr, getattr(source, attr))<EOL><DEDENT>
Copy the attributes from a source object to a destination object.