Save/load like matlab?

Robert Kern robert.kern at gmail.com
Mon Aug 23 23:33:54 CEST 2010


On 8/23/10 3:18 PM, Robert Kern wrote:
> On 8/23/10 12:37 PM, Sang-Ho Yun wrote:
>> I wonder if there is a way to save and load all python variables just like
>> matlab does, so I can build a code step by step by loading previous states.
>>
>> I am handling a python processing code for very large files and multiple
>> processing steps. Each time I find a bug, I have to run the whole thing
>> again, which is time consuming.
>
> Test each piece of code in isolation from the rest rather than relying on a
> complete run to test everything in one go.

Having said that, you will want to take a look into using joblib to structure 
your larger runs:

   http://pypi.python.org/pypi/joblib

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list