Answered I ended up going with pickle at the end anyway
Ok so with some advice on another question I asked I was told to use pickle to save a dictio
Sure, save it as CSV:
import csv
w = csv.writer(open("output.csv", "w"))
for key, val in dict.items():
w.writerow([key, val])
Then reading it would be:
import csv
dict = {}
for key, val in csv.reader(open("input.csv")):
dict[key] = val
Another alternative would be json (json for version 2.6+, or install simplejson for 2.5 and below):
>>> import json
>>> dict = {"hello": "world"}
>>> json.dumps(dict)
'{"hello": "world"}'