def delete_attribute(self, name):
for idx, attr in enumerate(self.attributes):<EOL><INDENT>attr_name, _ = attr<EOL>if attr_name == name:<EOL><INDENT>del self.attributes[idx]<EOL>return<EOL><DEDENT><DEDENT>
Delete an attribute with a given *name* from the list of attributes.