Store Python objects so you can use them later with “shelve”
Tuesday, December 4th, 2007I had a couple of Python lists that I needed to use in another script on another computer. The annoying way would be to write out to a tab-delimited file, but luckily the shelve module (standard with Python), makes things much easier. It’s the equivalent of Matlab’s .mat files, where you store variables for later use. Here’s how to use it: (more…)