Writing dictionary to file

Gustaf Liljegren gustafl at algonet.se
Thu Sep 7 21:52:21 EDT 2000


Hi, I'm looking for an elegant way to write a dictionary to a file. I'm not
sure which format is suitable, but I would like each pair on a row,
separated by a space, comma, semi-colon or something. Perhaps like this:

John john at foo.com
Greg greg at foo.com
Fred fred at foo.com

Thanks in advance,

Gustaf





More information about the Python-list mailing list