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

Method push

Lib/turtle.py:923–929  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

921 self.buffer = [[None]] * bufsize
922 self.ptr = -1
923 def push(self, item):
924 if self.bufsize > 0:
925 if not self.cumulate:
926 self.ptr = (self.ptr + 1) % self.bufsize
927 self.buffer[self.ptr] = item
928 else:
929 self.buffer[self.ptr].append(item)
930 def pop(self):
931 if self.bufsize > 0:
932 item = self.buffer[self.ptr]

Callers 12

getStackAtMethod · 0.45
pushFrameMethod · 0.45
circleMethod · 0.45
penMethod · 0.45
stampMethod · 0.45
_gotoMethod · 0.45
_rotateMethod · 0.45
begin_fillMethod · 0.45
end_fillMethod · 0.45
dotMethod · 0.45
_writeMethod · 0.45
writeMethod · 0.45

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected