[Tutor] Writing dictionaries to a file

Alan Gauld alan.gauld at btinternet.com
Mon Apr 7 20:33:16 CEST 2008

"Jerrold Prothero" <jdprothero at gmail.com> wrote

> It's been suggested that if I had a clue, I'd use pickle

Shelve is based on Pickle and makes a file look
somewhat like a dictionary. It might do all you need
and is a standard module.

> looking at the csv (comma separated values) module, which also 
> supports
> writing dictionaries out to a file, I at least wanted to understand 
> how it's
> supposed to work with csv.

Can't help there I'm afraid.

Alan G. 

More information about the Tutor mailing list