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

Function remove_python_envvars

Lib/test/test_embed.py:77–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75
76
77def remove_python_envvars():
78 env = dict(os.environ)
79 # Remove PYTHON* environment variables to get deterministic environment
80 for key in list(env):
81 if key.startswith('PYTHON'):
82 del env[key]
83 return env
84
85
86class EmbeddingTestsMixin:

Calls 2

listClass · 0.85
startswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…