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

Method __len__

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

Source from the content-addressed store, hash-verified

1084 def __getitem__(self, i):
1085 raise IndexError
1086 def __len__(self):
1087 return 42
1088
1089 a = np.array(C()) # segfault?
1090 assert_equal(len(a), 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected