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

Method __str__

numpy/core/_exceptions.py:167–172  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

165 return '{:#.0f} {}'.format(n_units, unit_name)
166
167 def __str__(self):
168 size_str = self._size_to_string(self._total_size)
169 return (
170 "Unable to allocate {} for an array with shape {} and data type {}"
171 .format(size_str, self.shape, self.dtype)
172 )

Callers

nothing calls this directly

Calls 1

_size_to_stringMethod · 0.95

Tested by

no test coverage detected