Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MagicStack/contextvars
/ copy_context
Function
copy_context
contextvars/__init__.py:184–185 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
182
183
184
def
copy_context():
185
return
_get_context().copy()
186
187
188
def
_get_context():
Callers
nothing calls this directly
Calls
2
_get_context
Function · 0.85
copy
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…