3 ms·
Don't Assume Things About Others Use Cases. In cases where I'm doing some sort of interactive or exploratory data analysis with structures of complex python ob
by ris 4y ago
Don't Assume Things About Others Use Cases.
In cases where I'm doing some sort of interactive or exploratory data analysis with structures of complex python objects and want to stash a copy of what I'm working with in case the next thing I do screws the up or, who knows, I lose power - being able to quickly pickle something and have an amount of confidence I'll be able to get it back in a sensible state is very useful.
I've also used it for debug dumps in experimental software so I have a chance of reproducing odd cases it comes across.
- hansvm 4y agoI made a simple library for just such a purpose if you're interested. You can wrap a whole module (like requests or pandas) and cache every function/coroutine result to disk. https://github.com/hmusgrave/ememo https://github.com/hmusgrave/ememo I mainly use it for web scraping to be polite while I figure out the remote API, but I'm sure somebody could have another use.