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

Method __len__

numpy/core/tests/test_array_coercion.py:754–755  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

752 # sequences. We could expand this more generally though. (NumPy 1.20)
753 class BadSequence:
754 def __len__(self):
755 raise error
756 def __getitem__(self):
757 # must have getitem to be a Sequence
758 return 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected