Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ isinterned
Function
isinterned
Lib/test/test_code.py:1180–1181 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
1178
c2 == c3
1179
1180
def
isinterned(s):
1181
return
s is sys.intern((
'_'
+ s +
'_'
)[1:-1])
1182
1183
class
CodeConstsTest(unittest.TestCase):
1184
Callers
2
assertIsInterned
Method · 0.85
assertIsNotInterned
Method · 0.85
Calls
1
intern
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…