Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MagicStack/contextvars
/ _set_context
Function
_set_context
contextvars/__init__.py:196–197 ·
view source on GitHub ↗
(ctx)
Source
from the content-addressed store, hash-verified
194
195
196
def
_set_context(ctx):
197
_state.context = ctx
198
199
200
_state = threading.local()
Callers
1
run
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…