Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ ns_get
Function
ns_get
PC/layout/support/options.py:146–147 ·
view source on GitHub ↗
(ns, key, default=False)
Source
from the content-addressed store, hash-verified
144
145
146
def
ns_get(ns, key, default=False):
147
return
getattr(ns, key.replace(
"-"
,
"_"
), default)
148
149
150
def
ns_set(ns, key, value=True):
Callers
1
update_presets
Function · 0.85
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…