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

Method consume_until

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

Source from the content-addressed store, hash-verified

605 return False
606
607 def consume_until(self, c):
608 if callable(c):
609 i = 0
610 while i < len(self.s) and not c(self.s[i]):
611 i = i + 1
612 return self.advance(i)
613 else:
614 i = self.s.index(c)
615 res = self.advance(i)
616 self.advance(len(c))
617 return res
618
619 @property
620 def next(self):

Callers 1

__dtype_from_pep3118Function · 0.80

Calls 2

advanceMethod · 0.95
indexMethod · 0.45

Tested by

no test coverage detected