Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
consume
Method · 0.95
consume_until
Method · 0.95
test_advance_symmetry
Method · 0.80
test_advange_large
Method · 0.80
test_advance_symmetry
Method · 0.80
test_advange_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_advange_large
Method · 0.64
test_advance_symmetry
Method · 0.64
test_advange_large
Method · 0.64
test_advance
Method · 0.64