Re: [Bulk] Re: Writing Object Data to Disk

2007-09-23 Thread Amit Kumar Saha
On Sun, 2007-09-23 at 18:34 +0200, David wrote:
  I would like to know if Pickling the class object is the only way of
  writing it to disk for persistent storage. Also, do we have a concept
  similar to array of objects in Python? The number of objects is only
  known at run-time.
 
 Have a look at YAML.
 
 http://freshmeat.net/projects/syck/
 
 Also it is possible to persist python data to and from XML. See
 xml.marshal.generic.dumps

Thanks David :-)
I appreciate the XML related comment, but as of now I am ready-to-roll
with Python specific pickling. XML will be used in a later version of my
code!

Regards,
Amit
-- 
Amit Kumar Saha
me blogs@ http://amitksaha.blogspot.com
URL:http://amitsaha.in.googlepages.com


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [Bulk] Re: Writing Object Data to Disk

2007-09-23 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Amit Kumar
Saha wrote:

 I appreciate the XML related comment, but as of now I am ready-to-roll
 with Python specific pickling. XML will be used in a later version of my
 code!

Will you need to maintain backward compatibility with data written by the
current version of your code?
-- 
http://mail.python.org/mailman/listinfo/python-list