my computer is allergic to pickles

Bob Fnord bob at example.com
Sun Mar 6 21:06:37 EST 2011


GSO <gsowww at yahoo.co.uk> wrote:

> On 5 March 2011 02:14, MRAB <python at mrabarnett.plus.com> wrote:
> ...
> >> Any comments, suggestions?
> >>
> 
> You obviously can't feed your computer pickles then.
> 
> How about a tasty tidbit of XML?  Served up in a main dish of DOM, or
> serially if preferred?

Well, right now it takes three lines to save the dict object:

data_file = open(data_filename, 'wb')
marshal.dump(analysis, file, 2)
data_file.close()

and three to load it.  I doubt I could do it that easily in XML
_and_ the data file would be enormous. (XML always is, let's be
honest. The file doesn't need to be human readable or editable.)




More information about the Python-list mailing list