Python -Listen -Objekt -IDs

# assuming obj has an attribute id
list = [obj1, obj2, obj3]

ids = [obj.id for obj in list]
Black Beaver