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

Method __repr__

numpy/lib/user_array.py:33–37  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 self.array = array(data, dtype, copy=copy)
32
33 def __repr__(self):
34 if self.ndim > 0:
35 return self.__class__.__name__ + repr(self.array)[len("array"):]
36 else:
37 return self.__class__.__name__ + "(" + repr(self.array) + ")"
38
39 def __array__(self, t=None):
40 if t:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected