DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+5 =
Submit