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

Method pop

tools/python-3.11.9-amd64/Lib/turtle.py:940–948  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

938 else:
939 self.buffer[self.ptr].append(item)
940 def pop(self):
941 if self.bufsize > 0:
942 item = self.buffer[self.ptr]
943 if item is None:
944 return None
945 else:
946 self.buffer[self.ptr] = [None]
947 self.ptr = (self.ptr - 1) % self.bufsize
948 return (item)
949 def nr_of_items(self):
950 return self.bufsize - self.buffer.count([None])
951 def __repr__(self):

Callers 15

_get_tagged_responseMethod · 0.45
_untagged_responseMethod · 0.45
disFunction · 0.45
resolve_nameFunction · 0.45
unregisterMethod · 0.45
cleandocFunction · 0.45
visit_FunctionDefMethod · 0.45
visit_ClassDefMethod · 0.45
_signature_fromstrFunction · 0.45
_bindMethod · 0.45
end_dictMethod · 0.45
end_arrayMethod · 0.45

Calls

no outgoing calls

Tested by 1

script_from_examplesFunction · 0.36