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

Method undobufferentries

Lib/turtle.py:2687–2698  ·  view source on GitHub ↗

Return count of entries in the undobuffer. No argument. Example (for a Turtle instance named turtle): >>> while undobufferentries(): ... undo()

(self)

Source from the content-addressed store, hash-verified

2685 self.undobuffer = Tbuffer(size)
2686
2687 def undobufferentries(self):
2688 """Return count of entries in the undobuffer.
2689
2690 No argument.
2691
2692 Example (for a Turtle instance named turtle):
2693 >>> while undobufferentries():
2694 ... undo()
2695 """
2696 if self.undobuffer is None:
2697 return 0
2698 return self.undobuffer.nr_of_items()
2699
2700 def _clear(self):
2701 """Delete all of pen's drawings"""

Callers 1

mainFunction · 0.80

Calls 1

nr_of_itemsMethod · 0.80

Tested by

no test coverage detected