Re: object persistency, store instances relationship externally

2008-07-25 Thread King
Thanks Fredrik, It helped a lot and this is really an amazing this I have discovered today. :-)) -- http://mail.python.org/mailman/listinfo/python-list

Re: object persistency, store instances relationship externally

2008-07-25 Thread Fredrik Lundh
King wrote: This is a new test for object persistency. I am trying to store the relationship between instances externally. It's not working as expected. May be I am doing it in wrong way. Any suggestions? The shelve module pickles each stored item individually. To preserve inter-object relat

Re: object persistency, store instances relationship externally

2008-07-25 Thread Larry Bates
King wrote: This is a new test for object persistency. I am trying to store the relationship between instances externally. It's not working as expected. May be I am doing it in wrong way. Any suggestions? import shelve class attrib(object): pass class node(object): def __init__(self):