«« Next » « Previous
«« Next » « Previous

Link Details

Link 80392 thumbnail

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.
  • 3
  • 0
  • 101
  • 23

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (3)



Voters Against This Link (0)