PyDocs

Nav

Concurrent Execution

Context

A mapping of ContextVars to their values.
Members of Context

c

copy
Return a shallow copy of the context object.

g

get
Return the value for `key` if `key` has the value in the context object.

i

items
Return all variables and their values in the context object.

k

keys
Return a list of all variables in the context object.

r

run
Enters the Context, executes callable(*args, **kwargs), then exits the Context.

v

values
Return a list of all variables' values in the context object.
0 Examples
No examples for contextvars/Context.
See Also
No see-alsos for contextvars/Context
0 Notes
No notes for Context