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

Method __len__

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

Source from the content-addressed store, hash-verified

598 class bad_sequence:
599 def __getitem__(self): pass
600 def __len__(self): raise RuntimeError
601
602 assert_raises(ValueError, operator.setitem, u, 0, [])
603 assert_raises(ValueError, operator.setitem, b, 0, [])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected