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

Method __iter__

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

Source from the content-addressed store, hash-verified

2465
2466 # Make sure __array__ is used instead of Sequence methods.
2467 def __iter__(self):
2468 return iter([])
2469
2470 def __getitem__(self, idx):
2471 raise AssertionError("__getitem__ was called")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected