clipspy-1.0.0/clips/classes.py
def load_instances(self, instances: str) -> int:
        """Load a set of instances into the CLIPS data base.

        Equivalent to the CLIPS (load-instances) function.

        Instances can be loaded from a string, a file or a binary file.

        """
        instances = instances.encode()

        if os.path.exists(instances):
            try:
                return self._load_instances_binary(instances)
            except CLIPSError:
                return self._load_instances_text(instances)
        else:
            return self._load_instances_string(instances)
Load a set of instances into the CLIPS data base.

        Equivalent to the CLIPS (load-instances) function.

        Instances can be loaded from a string, a file or a binary file.

        
Load a set of instances into the CLIPS data base.
Equivalent to the CLIPS (load-instances) function.

Instances can be loaded from a string, a file or a binary file.
Load a set of instances into the CLIPS data base . Equivalent to the CLIPS ( load - instances ) function . Instances can be loaded from a string a file or a binary file .
def load_instances(self, instances: str) -> int:
        instances = instances.encode()
        if os.path.exists(instances):
            try:
                return self._load_instances_binary(instances)
            except CLIPSError:
                return self._load_instances_text(instances)
        else:
            return self._load_instances_string(instances)
def load_instances ( self , instances : str ) -> int : instances = instances . encode ( ) if os . path . exists ( instances ) : try : return self . _load_instances_binary ( instances ) except CLIPSError : return self . _load_instances_text ( instances ) else : return self . _load_instances_string ( instances )
Load a set of instances into the CLIPS data base.
Load a set of instances into the CLIPS data base .
"""Load a set of instances into the CLIPS data base.

        Equivalent to the CLIPS (load-instances) function.

        Instances can be loaded from a string, a file or a binary file.

        """
self
instances
str