clipspy-1.0.0/clips/classes.py
def save_instances(self, path: str, binary: bool = False,
                       mode: SaveMode = SaveMode.LOCAL_SAVE) -> int:
        """Save the instances in the system to the specified file.

        If binary is True, the instances will be saved in binary format.

        Equivalent to the CLIPS (save-instances) function.

        """
        if binary:
            ret = lib.BinarySaveInstances(self._env, path.encode(), mode)
        else:
            ret = lib.SaveInstances(self._env, path.encode(), mode)
        if ret == 0:
            raise CLIPSError(self._env)

        return ret
Save the instances in the system to the specified file.

        If binary is True, the instances will be saved in binary format.

        Equivalent to the CLIPS (save-instances) function.

        
Save the instances in the system to the specified file.
If binary is True, the instances will be saved in binary format.

Equivalent to the CLIPS (save-instances) function.
Save the instances in the system to the specified file . If binary is True the instances will be saved in binary format . Equivalent to the CLIPS ( save - instances ) function .
def save_instances(self, path: str, binary: bool = False,
                       mode: SaveMode = SaveMode.LOCAL_SAVE) -> int:
        if binary:
            ret = lib.BinarySaveInstances(self._env, path.encode(), mode)
        else:
            ret = lib.SaveInstances(self._env, path.encode(), mode)
        if ret == 0:
            raise CLIPSError(self._env)
        return ret
def save_instances ( self , path : str , binary : bool = False , mode : SaveMode = SaveMode . LOCAL_SAVE ) -> int : if binary : ret = lib . BinarySaveInstances ( self . _env , path . encode ( ) , mode ) else : ret = lib . SaveInstances ( self . _env , path . encode ( ) , mode ) if ret == 0 : raise CLIPSError ( self . _env ) return ret
Save the instances in the system to the specified file.
Save the instances in the system to the specified file .
"""Save the instances in the system to the specified file.

        If binary is True, the instances will be saved in binary format.

        Equivalent to the CLIPS (save-instances) function.

        """
self
path
str
binary
bool
mode
SaveMode