Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ iter_prefixes
Function
iter_prefixes
library/python/runtime_py3/__res.py:222–226 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
220
221
222
def
iter_prefixes(s):
223
i = s.find(
'.'
)
224
while
i >= 0:
225
yield
s[:i]
226
i = s.find(
'.'
, i + 1)
227
228
229
def
resfs_resolve(path, check_existence=True):
Callers
1
__init__
Method · 0.85
Calls
1
find
Method · 0.45
Tested by
no test coverage detected