String representation.
(self)
| 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__, |
nothing calls this directly
no outgoing calls
no test coverage detected