def __setstate__(self, state):

        # Patch old pickle files
        if 'matrices_save_path' not in state:
            state['matrices_save_path'] = None

        if state['matrices_save_path'] is not None:
            matrices = numpy.load(state['matrices_save_path'])

            # puts matrices' items into state, overriding any colliding keys in
            # state.
            state = dict(state.items() + matrices.items())
            del matrices

        self.__dict__.update(state)

        if not hasattr(self, "inv_P_"):
            self.inv_P_ = None
Like open but method is enforced to POST.
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/datasets/preprocessing.py/ZCA.__setstate__--crossover with--dataset/ETHPy150Open IanLewis/kay/kay/lib/werkzeug/test.py/Client.post