pickle for PureBasic
Posted: Mon Dec 25, 2006 9:56 pm
Hi all!
I think it would be great, if PureBasic had some kind of a "pickle"-lib.
I discovered "pickle" (like in "mixed pickles"), when I was playing around with Python for a few weeks now. The "pickle module" has some very powerful methods to save and restore objects/lists/arrays/lists with arrays with structures/.../ very easily!
It could save a lot of time, you must not implement your own filetype (with read and write functions) and would help, if you have a quick and dirty hack.
Mapfiles (for games), Lists (as a mini-databas) and lots of other thing could be saved and restored in the correct format!
Read mor about pickle in Python:
http://www.python.org/doc/current/lib/m ... ickle.html
http://www.python.org/doc/current/lib/node318.html
http://www.python.org/doc/current/lib/p ... ample.html
Cheers,
I think it would be great, if PureBasic had some kind of a "pickle"-lib.
I discovered "pickle" (like in "mixed pickles"), when I was playing around with Python for a few weeks now. The "pickle module" has some very powerful methods to save and restore objects/lists/arrays/lists with arrays with structures/.../ very easily!
It could save a lot of time, you must not implement your own filetype (with read and write functions) and would help, if you have a quick and dirty hack.
Mapfiles (for games), Lists (as a mini-databas) and lots of other thing could be saved and restored in the correct format!
Read mor about pickle in Python:
http://www.python.org/doc/current/lib/m ... ickle.html
http://www.python.org/doc/current/lib/node318.html
http://www.python.org/doc/current/lib/p ... ample.html
Cheers,