MCPcopy Index your code
hub / github.com/python/cpython / update_presets

Function update_presets

PC/layout/support/options.py:162–172  ·  view source on GitHub ↗
(ns)

Source from the content-addressed store, hash-verified

160
161@public
162def update_presets(ns):
163 for preset, info in PRESETS.items():
164 if ns_get(ns, "preset-{}".format(preset)):
165 for opt in info["options"]:
166 ns_set(ns, opt)
167
168 if ns.include_all:
169 for opt in OPTIONS:
170 if OPTIONS[opt].get("not-in-all"):
171 continue
172 ns_set(ns, opt)

Callers 1

mainFunction · 0.85

Calls 5

ns_getFunction · 0.85
ns_setFunction · 0.85
itemsMethod · 0.45
formatMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…