def fprint(self, obj, stream=None, **kwargs):
        """Prints the formatted representation of the object on stream"""
        if stream is None:
            stream = sys.stdout

        options = self.options
        options.update(kwargs)

        if isinstance(obj, dimod.SampleSet):
            self._print_sampleset(obj, stream, **options)
            return

        raise TypeError("cannot format type {}".format(type(obj)))
def fprint ( self , obj , stream = None , ** kwargs ) : if stream is None : stream = sys . stdout options = self . options options . update ( kwargs ) if isinstance ( obj , dimod . SampleSet ) : self . _print_sampleset ( obj , stream , ** options ) return raise TypeError ( "cannot format type {}" . format ( type ( obj ) ) )
Prints the formatted representation of the object on stream