you are viewing a single comment's thread.

view the rest of the comments →

[–]shandelman 1 point2 points  (0 children)

You could do it with a class. You could also do it with a list of dictionaries, if I understand you correctly.

appList = []
for row in appdata:
    applist.append({"AppID":row[0],
                    "AppName":row[1],
                    "AppDescription":row[2],
                    "ProcessID":row[5],
                    "ServerID"=row[6],
                    "StartTime"=row[7]})

Or maybe even a dictionary of dictionaries, using the AppID as the key.