Dictionaries in Lists

Avi Homes Moo at houston.rr.com
Wed Mar 6 16:07:18 EST 2002


I was attempting to make a list of dictionaries, which to me feels like the
C equivlant of an array of structs, kind of. anyway, after making a
dictionary and putting some values into it, and trying to append it to a
list, python is not liking this. Am I approaching the idea the wrong way? i
would like to keep the data organized as dictionaries.. the code looked
something like

Info{'IName':"Voodoo2",'IDescription':"blahblah}
Listing=[]
Listing.append(Info)







More information about the Python-list mailing list