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

Method __str__

numpy/ma/tests/test_subclassing.py:110–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

108class ComplicatedSubArray(SubArray):
109
110 def __str__(self):
111 return f'myprefix {self.view(SubArray)} mypostfix'
112
113 def __repr__(self):
114 # Return a repr that does not start with 'name('

Callers

nothing calls this directly

Calls 1

viewMethod · 0.45

Tested by

no test coverage detected