Python - Saving your file format
Posted by giuamato | 28 Apr, 2009
I'm writing a software and I want to save what I have done so that I can re-open the software and restart from where I stopped. How can I do it?Surfing on the net I find some doc about objects serialization, so they can be converted in bytes...What it means? I can't understand very well.Python is very powerful because it does almost everything by itself, but it is even very difficult.There is a package, named Pickles, which takes tho objects and sves them to a file. Pay attention because it does not save everything. For other information here is the link.So there are different possibilities:
- You can save the list of the operation you did, quite easy to code, but it has a low efficiency on opening.
- You can use the pickles and you don't save everything, it's a little bit more difficult, but it is even more efficient.
- You can optimize the code so that the opening is simple, it's hard to code, but very efficient.
Interesting,
Keep up the good work,
Anyway, thanks for the post
Posted by web development 07 Dec 2009, 14:02More complicated actions may require Python functions instead of simple strings as dictionary values.
Posted by Body shape fashion tips 28 Feb 2010, 10:52More complicated actions may require Python functions instead of simple strings as dictionary values.
Posted by Jump higher 28 Feb 2010, 10:53