I need to program a way of storing and deleting multiple objects so that they stay around even after the program has been closed and that when you re-start the program you can search for an object?

I'am using python 3.0 not 2.7.

i.e. I create A class with different Variables, I initialise it with an object and the next time I use my program I can search for the stored object and all its variables.

Ya, pickle will allow you to save your classes to disk. Once you close python, objects are removed from memory so it doesn't make much sense to talk about restoring unless you've saved it to your harddisk.

Ya, pickle will allow you to save your classes to disk. Once you close python, objects are removed from memory so it doesn't make much sense to talk about restoring unless you've saved it to your harddisk.

I've Tried Pickling objects But how do I then Recover Multiple Objects becasue If I store more than one object from the same class it only returns the first object?

If you want to use a dictionary, you might as well use Python module shelve and create a 'persistent to file' dictionary.

This question has already been answered. Start a new discussion instead.