MCPcopy Index your code
hub / github.com/numpy/numpy / get_str

Method get_str

numpy/_core/getlimits.py:264–269  ·  view source on GitHub ↗
(name, pad=None)

Source from the content-addressed store, hash-verified

262 return fmt
263
264 def get_str(name, pad=None):
265 if (val := getattr(self, name, None)) is None:
266 return "<undefined>"
267 if pad is not None:
268 s = str(val).ljust(pad)
269 return str(val)
270
271 precision = get_str("precision", 3)
272 machep = get_str("machep", 6)

Callers

nothing calls this directly

Calls 1

ljustMethod · 0.80

Tested by

no test coverage detected