Dictionaries in Lists

j vickroy jim.vickroy at noaa.gov
Wed Mar 6 16:25:47 EST 2002


Nothing wrong with the idea.

Did you specify:

> Info = {'IName':"Voodoo2",'IDescription':"blahblah"}

or what you posted (which had some syntax errors)?

"Avi Homes" <Moo at houston.rr.com> wrote in message
news:ayvh8.55100$6j2.3265866 at typhoon.austin.rr.com...
> 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