Re: shelve object back to dictionary

2005-10-06 Thread Fredrik Lundh
Ryan Krauss wrote: > Is there an easy way to convert a shelved object back to a dictionary? > When I save a dictionary using shelve and then load it in a later > session, I have an object whose property names are the keys of the > dictionary used as an input to shelve. For example, instead of >

shelve object back to dictionary

2005-10-06 Thread Ryan Krauss
Is there an easy way to convert a shelved object back to a dictionary? When I save a dictionary using shelve and then load it in a later session, I have an object whose property names are the keys of the dictionary used as an input to shelve. For example, instead of user['name'] I have user.name.