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

Method nr_of_items

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

Source from the content-addressed store, hash-verified

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):
942 return str(self.buffer) + " " + str(self.ptr)
943

Callers 1

undobufferentriesMethod · 0.80

Calls 1

countMethod · 0.45

Tested by

no test coverage detected