Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MagicStack/contextvars
/ func
Method
func
tests/test_basics.py:104–107 ·
view source on GitHub ↗
(*args, **kwargs)
Source
from the content-addressed store, hash-verified
102
ctx = contextvars.Context()
103
104
def
func(*args, **kwargs):
105
kwargs[
'spam'
] =
'foo'
106
args += (
'bar'
,)
107
return
args, kwargs
108
109
for
f in (func, functools.partial(func)):
110
# partial doesn't support FASTCALL
Callers
nothing calls this directly
Calls
2
get
Method · 0.80
set
Method · 0.80
Tested by
no test coverage detected