By bloid
via mikkel.elmholdt.dk
Submitted: May 11 / 07:58
Occasionally most Python programmers needs to save some settings data, usually to save program states, user settings, etc. One way of doing this is to use a standard pickle/cPickle-approach, by which you can save (serialize) and retrieve the state of any object to and from a file. The drawback of this approach is that the resulting data file is in a binary format. And if you are like me, you want your state data in an easily hackable and debuggable format - that is, plain text.
Add your comment