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

Method __length_hint__

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

Source from the content-addressed store, hash-verified

1252 class MyIter:
1253 # Class/example from gh-15789
1254 def __length_hint__(self):
1255 # only required to be an estimate, this is legal
1256 return length_hint # 0 or 1
1257
1258 def __iter__(self):
1259 return iter(data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected