Get list item by attribute in Python,items = [item for item in container if item.attribute == value]