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

Method __len__

numpy/core/tests/test_multiarray.py:1049–1050  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1047 """
1048 class Fail:
1049 def __len__(self):
1050 return 1
1051
1052 def __getitem__(self, index):
1053 raise ValueError()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected