MCPcopy Index your code
hub / github.com/numpy/numpy / consume

Method consume

numpy/_core/_internal.py:601–605  ·  view source on GitHub ↗
(self, c)

Source from the content-addressed store, hash-verified

599 return res
600
601 def consume(self, c):
602 if self.s[:len(c)] == c:
603 self.advance(len(c))
604 return True
605 return False
606
607 def consume_until(self, c):
608 if callable(c):

Callers 1

__dtype_from_pep3118Function · 0.80

Calls 1

advanceMethod · 0.95

Tested by

no test coverage detected