Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ consume
Method
consume
numpy/core/_internal.py:626–630 ·
view source on GitHub ↗
(self, c)
Source
from the content-addressed store, hash-verified
624
return
res
625
626
def
consume(self, c):
627
if
self.s[:len(c)] == c:
628
self.advance(len(c))
629
return
True
630
return
False
631
632
def
consume_until(self, c):
633
if
callable(c):
Callers
1
__dtype_from_pep3118
Function · 0.80
Calls
1
advance
Method · 0.95
Tested by
no test coverage detected