Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __len__
Method
__len__
numpy/core/tests/test_ufunc.py:1942–1943 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1940
self.shape = shape
1941
1942
def
__len__(self):
1943
return
self.shape[0]
1944
1945
def
__getitem__(self, i):
1946
MyThing.getitem_count += 1
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected