Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
108
class
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
view
Method · 0.45
Tested by
no test coverage detected