shelve looking for classes?

moonseeker at my-deja.com moonseeker at my-deja.com
Tue Jan 11 05:21:29 EST 2000


Hi!

If I try to recreate an object saved with shelve (maybe with pickle too)
shelve looks for the class of the object in __main__. Thats not too good
because I have to keep all classes in __main__ which doesn't help me to keep
my program as modular as possible.

Anyone a suggestion how to make shelve looking somewhere different for the
class?

Thanks,
Mike


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list