Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _looks_like_filename
Function
_looks_like_filename
Tools/c-analyzer/c_parser/source.py:35–38 ·
view source on GitHub ↗
(value)
Source
from the content-addressed store, hash-verified
33
34
35
def
_looks_like_filename(value):
36
if
not isinstance(value, str):
37
return
False
38
return
value.endswith((
'.c'
,
'.h'
))
39
40
41
def
_resolve_filename(filename, alt=None):
Callers
2
resolve
Function · 0.85
good_file
Function · 0.85
Calls
1
endswith
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…