Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/numpy/numpy
/ consume
Method
consume
numpy/_core/_internal.py:601–605 ·
view source on GitHub ↗
(self, c)
Source
from the content-addressed store, hash-verified
599
return
res
600
601
def
consume(self, c):
602
if
self.s[:len(c)] == c:
603
self.advance(len(c))
604
return
True
605
return
False
606
607
def
consume_until(self, c):
608
if
callable(c):
Callers
1
__dtype_from_pep3118
Function · 0.80
Calls
1
advance
Method · 0.95
Tested by
no test coverage detected