I have a list or array (what is the correct term in python?) of objects. What is the most efficient way to get all objects matching a condition?
I could iterate over the list and check each element, but that doesn't seem very efficient.
objects = []
for object in list:
if object.value == "123":
objects.add(object)