I 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: Continue reading ‘Store Python objects so you can use them later with “shelve”’
Recent Posts
- Minimal Sphinx setup for autodocumenting Python modules
- Write Excel files with Python using xlwt
- Python script to package Latex projects for distribution
- RPy: statistics in R from Python
- Polar bar plot in Python
- Record screencasts, convert to Flash, and embed on your site
- Interactive subplots: make all x-axes move together
- Calculate sunrise and sunset with PyEphem
- Use Sphinx for documentation
- Insert content into TiddlyWikis with this Python script
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Apr | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | |||