Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _set_context
Function
_set_context
Lib/_py_warnings.py:98–100 ·
view source on GitHub ↗
(context)
Source
from the content-addressed store, hash-verified
96
97
98
def
_set_context(context):
99
assert _use_context
100
_wm._warnings_context.set(context)
101
102
103
def
_new_context():
Callers
nothing calls this directly
Calls
1
set
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…