MCPcopy Index your code
hub / github.com/python/cpython / __next__

Method __next__

Lib/imaplib.py:1577–1591  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1575 return resp
1576
1577 def __next__(self):
1578 imap = self._imap
1579
1580 if self._duration is None:
1581 timeout = None
1582 else:
1583 timeout = self._deadline - time.monotonic()
1584 typ, data = self._pop(timeout)
1585
1586 if not typ:
1587 if __debug__ and imap.debug >= 4:
1588 imap._mesg('idle iterator exhausted')
1589 raise StopIteration
1590
1591 return typ, data
1592
1593 def burst(self, interval=0.1):
1594 """Yield a burst of responses no more than 'interval' seconds apart.

Callers

nothing calls this directly

Calls 2

_popMethod · 0.95
_mesgMethod · 0.80

Tested by

no test coverage detected