Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ get_interpreter
Function
get_interpreter
Lib/zipapp.py:175–178 ·
view source on GitHub ↗
(archive)
Source
from the content-addressed store, hash-verified
173
174
175
def
get_interpreter(archive):
176
with
_maybe_open(archive,
'rb'
)
as
f:
177
if
f.read(2) == b
'#!'
:
178
return
f.readline().strip().decode(shebang_encoding)
179
180
181
def
main(args=None):
Callers
1
main
Function · 0.85
Calls
5
_maybe_open
Function · 0.85
read
Method · 0.45
decode
Method · 0.45
strip
Method · 0.45
readline
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…