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

Method __iter__

numpy/core/tests/test_numeric.py:1258–1259  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1256 return length_hint # 0 or 1
1257
1258 def __iter__(self):
1259 return iter(data)
1260
1261 res = np.fromiter(MyIter(), dtype=dtype)
1262 expected = np.array(data, dtype=dtype)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected