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

Method advance

numpy/_core/_internal.py:596–599  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

594 self.byteorder = '@'
595
596 def advance(self, n):
597 res = self.s[:n]
598 self.s = self.s[n:]
599 return res
600
601 def consume(self, c):
602 if self.s[:len(c)] == c:

Callers 8

consumeMethod · 0.95
consume_untilMethod · 0.95
test_advance_symmetryMethod · 0.80
test_advance_largeMethod · 0.80
test_advance_symmetryMethod · 0.80
test_advance_largeMethod · 0.80
test_advanceMethod · 0.80
__dtype_from_pep3118Function · 0.80

Calls

no outgoing calls

Tested by 5

test_advance_symmetryMethod · 0.64
test_advance_largeMethod · 0.64
test_advance_symmetryMethod · 0.64
test_advance_largeMethod · 0.64
test_advanceMethod · 0.64