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

Method __len__

numpy/core/tests/test_regression.py:414–415  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

412 # Issue gh-4123
413 class BuggySequence:
414 def __len__(self):
415 return 4
416
417 def __getitem__(self, key):
418 raise KeyError

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected