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

Method __init__

Python/Turtle.py:818–822  ·  view source on GitHub ↗
(self, bufsize=10)

Source from the content-addressed store, hash-verified

816class Tbuffer(object):
817 """Ring buffer used as undobuffer for RawTurtle objects."""
818 def __init__(self, bufsize=10):
819 self.bufsize = bufsize
820 self.buffer = [[None]] * bufsize
821 self.ptr = -1
822 self.cumulate = False
823 def reset(self, bufsize=None):
824 if bufsize is None:
825 for i in range(self.bufsize):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected