MCPcopy Create free account
hub / github.com/numpy/numpy / advance

Method advance

numpy/core/_internal.py:621–624  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

619 self.byteorder = '@'
620
621 def advance(self, n):
622 res = self.s[:n]
623 self.s = self.s[n:]
624 return res
625
626 def consume(self, c):
627 if self.s[:len(c)] == c:

Callers 8

consumeMethod · 0.95
consume_untilMethod · 0.95
test_advance_symmetryMethod · 0.80
test_advange_largeMethod · 0.80
test_advance_symmetryMethod · 0.80
test_advange_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_advange_largeMethod · 0.64
test_advance_symmetryMethod · 0.64
test_advange_largeMethod · 0.64
test_advanceMethod · 0.64