def instance_attr(self, name, context=None):
<EOL>values = list(self.instance_attrs.get(name, []))<EOL>for class_node in self.instance_attr_ancestors(name, context):<EOL><INDENT>values += class_node.instance_attrs[name]<EOL><DEDENT>values = [n for n in values if not isinstance(n, node_classes.DelAttr)]<EOL>if values:<EOL><INDENT>return values<EOL><DEDENT>raise exceptions.AttributeInferenceError(<EOL>target=self, attribute=name, context=context<EOL>)<EOL>
Get the list of nodes associated to the given attribute name.

        Assignments are looked for in both this class and in parents.

        :returns: The list of assignments to the given name.
        :rtype: list(NodeNG)

        :raises AttributeInferenceError: If no attribute with this name
            can be found in this class or parent classes.