MCPcopy Create free account
hub / github.com/ipython/ipython / __next__

Method __next__

IPython/core/display.py:842–848  ·  view source on GitHub ↗

Returns current value and increments display by one.

(self)

Source from the content-addressed store, hash-verified

840 return self
841
842 def __next__(self):
843 """Returns current value and increments display by one."""
844 self.progress += 1
845 if self.progress < self.total:
846 return self.progress
847 else:
848 raise StopIteration()
849
850class JSON(DisplayObject):
851 """JSON expects a JSON-able dict or list

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected