O.k. sometimes I'm on the road - and it takes me a while to get back to gambas.
Ideally I just want to write a class, which is all strings, to a file and read it back in. I saw in one of the posts that there may be a way to do this, but there wasn't any detail... Can any one explain further? FYI Pickle explained (sortof): ----- snip ------ "Rather than have users be constantly writing and debugging code to save complicated data types, Python provides a standard module called ‘pickle’. This is an amazing module that can take almost any Python object (even some forms of Python code!), and convert it to a string representation; this process is called pickling. Reconstructing the object from the string representation is called unpickling. Between pickling and unpickling, the string representing the object may have been stored in a file or data, or sent over a network connection to some distant machine. " ref http://www.network-theory.co.uk/docs/pytut/pickleModule.html -------------------- Thanks in advance a gambas newbie :) Peter. ________________________________ From: Rob <sourceforge-raind...@kudla.org> To: gambas-user@lists.sourceforge.net Sent: Wednesday, 12 August, 2009 12:07:01 AM Subject: Re: [Gambas-user] pickle? On Tuesday 11 August 2009 02:32 am, Peter Tyler wrote: > One thing I'm looking for in Gambas is something like the > python "pickle" functionality. > Does anyone know if this functionality is available? Benoit used to talk about object persistence/serialization as a 3.0 feature, but I don't know the status of that yet. As Steven posted, you can always just write data types to a file directly, but to write them in a semi-human-readable format like pickle does would probably need its own component or module. Parsing existing pickle data would probably not be that hard; I've done it in Perl on a number of occasions. Rob ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user __________________________________________________________________________________ Find local businesses and services in your area with Yahoo!7 Local. Get started: http://local.yahoo.com.au ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user