MCPcopy Index your code
hub / github.com/webpy/webpy / __iter__

Method __iter__

web/utils.py:685–694  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

683 return default
684
685 def __iter__(self):
686 if hasattr(self, "_head"):
687 yield self._head
688
689 while 1:
690 try:
691 yield next(self.i)
692 except StopIteration:
693 return
694 self.c += 1
695
696 def __getitem__(self, i):
697 # todo: slices

Callers

nothing calls this directly

Calls 1

nextFunction · 0.85

Tested by

no test coverage detected