MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / __iter__

Method __iter__

21-async/mojifinder/bottle.py:2240–2245  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2238 if hasattr(fp, attr): setattr(self, attr, getattr(fp, attr))
2239
2240 def __iter__(self):
2241 buff, read = self.buffer_size, self.read
2242 while True:
2243 part = read(buff)
2244 if not part: return
2245 yield part
2246
2247
2248class _closeiter(object):

Callers

nothing calls this directly

Calls 1

readFunction · 0.85

Tested by

no test coverage detected