6

I'm using the shelve module with gdbm to store Python objects. I understand that shelve uses pickle to store the objects. Unfortunately, the sizes of my shelves are too large. I found this solution to bzip2 or gzip individual pickles. My question is: is there a way to make shelve compress all its pickles?

Botond
  • 2,640
  • 6
  • 28
  • 44

0 Answers0