Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python list object ids

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

ids = [obj.id for obj in list]
 
PREVIOUS NEXT
Tagged: #python #list #object #ids
ADD COMMENT
Topic
Name
5+5 =