MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / undobufferentries

Method undobufferentries

Python/Turtle.py:2502–2513  ·  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

2500 self.undobuffer = Tbuffer(size)
2501
2502 def undobufferentries(self):
2503 """Return count of entries in the undobuffer.
2504
2505 No argument.
2506
2507 Example (for a Turtle instance named turtle):
2508 >>> while undobufferentries():
2509 ... undo()
2510 """
2511 if self.undobuffer is None:
2512 return 0
2513 return self.undobuffer.nr_of_items()
2514
2515 def _clear(self):
2516 """Delete all of pen's drawings"""

Callers

nothing calls this directly

Calls 1

nr_of_itemsMethod · 0.80

Tested by

no test coverage detected