Page 1 of 1

pickle for PureBasic

Posted: Mon Dec 25, 2006 9:56 pm
by bembulak
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,

Posted: Tue Dec 26, 2006 7:33 pm
by Chrono Syndrome
Good idea ;) .

Posted: Fri Dec 29, 2006 4:52 pm
by Booster698
Effectively if could be nice to handle this.

Posted: Fri Jan 12, 2007 10:50 pm
by Hroudtwolf
Really goog idea.

Posted: Sat Jan 13, 2007 9:45 am
by Rescator
Great idea, just be aware that the stored data would be relative to the program,
compiler version and platform, and not a true file format,
trying to use it as such would make you run into MSB and LSB issues,
compiler differences and more (certain savegames of various games and
text adventures made in TADS etc spring to mind).
But as a temporary storage it would be great yeah.

Re: pickle for PureBasic

Posted: Wed Mar 01, 2017 10:45 am
by Lebostein
+1