Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
consume
Method · 0.95
consume_until
Method · 0.95
test_advance_symmetry
Method · 0.80
test_advance_large
Method · 0.80
test_advance_symmetry
Method · 0.80
test_advance_large
Method · 0.80
test_advance
Method · 0.80
__dtype_from_pep3118
Function · 0.80
Calls
no outgoing calls
Tested by
5
test_advance_symmetry
Method · 0.64
test_advance_large
Method · 0.64
test_advance_symmetry
Method · 0.64
test_advance_large
Method · 0.64
test_advance
Method · 0.64