Re: [Tutor] output of dictionaries

2005-05-10 Thread Karl Pflästerer
On 10 Mai 2005, [EMAIL PROTECTED] wrote: > I'm creating a small database using a dictionary of dictionaries, and I > want to output it to a file. It seems that only strings can be output to > files, and I cannot quite figure out how to quickly and simply convert my > dictionary to a list of

Re: [Tutor] output of dictionaries

2005-05-10 Thread Gabriel Farrell
take a look at pickle and shelve. info about both can be found at http://docs.python.org/lib/python.html On Tue, May 10, 2005 at 08:46:50AM -0700, Tom Cloyd wrote: > I'm creating a small database using a dictionary of dictionaries, and I > want to output it to a file. It seems that only strings

[Tutor] output of dictionaries

2005-05-10 Thread Tom Cloyd
I'm creating a small database using a dictionary of dictionaries, and I want to output it to a file. It seems that only strings can be output to files, and I cannot quite figure out how to quickly and simply convert my dictionary to a list of strings or whatever. Or maybe I'm going about this