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

Method pop

Lib/turtle.py:930–938  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

928 else:
929 self.buffer[self.ptr].append(item)
930 def pop(self):
931 if self.bufsize > 0:
932 item = self.buffer[self.ptr]
933 if item is None:
934 return None
935 else:
936 self.buffer[self.ptr] = [None]
937 self.ptr = (self.ptr - 1) % self.bufsize
938 return (item)
939 def nr_of_items(self):
940 return self.bufsize - self.buffer.count([None])
941 def __repr__(self):

Callers 15

runMethod · 0.45
_make_rowMethod · 0.45
getStackAtMethod · 0.45
popFrameMethod · 0.45
find_deviceFunction · 0.45
_get_tagged_responseMethod · 0.45
_untagged_responseMethod · 0.45
__enter__Method · 0.45
__exit__Method · 0.45
_popMethod · 0.45
walkFunction · 0.45
fwalkFunction · 0.45

Calls

no outgoing calls

Tested by 2

runMethod · 0.36
script_from_examplesFunction · 0.36