(self)
return pickle_dict
Pickle.
Pickle.
Pickle .
def __getstate__(self):
        """Pickle."""
        pickle_dict = self.__dict__.copy()
        # functions can't be pickled
        pickle_dict['step'] = None
        return pickle_dict
def __getstate__ ( self ) : pickle_dict = self . __dict__ . copy ( ) # functions can't be pickled pickle_dict [ 'step' ] = None return pickle_dict