MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / push

Method push

tools/python-3.11.9-amd64/Lib/turtle.py:933–939  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

931 self.buffer = [[None]] * bufsize
932 self.ptr = -1
933 def push(self, item):
934 if self.bufsize > 0:
935 if not self.cumulate:
936 self.ptr = (self.ptr + 1) % self.bufsize
937 self.buffer[self.ptr] = item
938 else:
939 self.buffer[self.ptr].append(item)
940 def pop(self):
941 if self.bufsize > 0:
942 item = self.buffer[self.ptr]

Callers 10

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