Get a list of items in the list `container` with attribute equal to `value`,items = [item for item in container if item.attribute == value]