MCPcopy Create free account
hub / github.com/numpy/numpy / __str__

Method __str__

numpy/core/getlimits.py:722–731  ·  view source on GitHub ↗

String representation.

(self)

Source from the content-addressed store, hash-verified

720 return val
721
722 def __str__(self):
723 """String representation."""
724 fmt = (
725 'Machine parameters for %(dtype)s\n'
726 '---------------------------------------------------------------\n'
727 'min = %(min)s\n'
728 'max = %(max)s\n'
729 '---------------------------------------------------------------\n'
730 )
731 return fmt % {'dtype': self.dtype, 'min': self.min, 'max': self.max}
732
733 def __repr__(self):
734 return "%s(min=%s, max=%s, dtype=%s)" % (self.__class__.__name__,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected