You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 3.7 contextvars (stdlib implementation), GET requests do not interfere with variable (even if the decorator is not present). In 3.6 with contextvars 2.4, the change to variable leaks out, regardless of whether handler is decorated.
Why does ctx.run() not protect the top-level context from changes?
Is there a workaround?
The text was updated successfully, but these errors were encountered:
I'll be frank -- there are no plans to further enhance this package. It exists solely for the purpose of defining contextvars APIs for other packages like trio and uvloop. I'd suggest to start using the latest 3.7/3.8 Python instead of relying on this package.
Potentially related to #2.
Take the following code:
In 3.7 contextvars (stdlib implementation), GET requests do not interfere with
variable
(even if the decorator is not present). In 3.6 with contextvars 2.4, the change tovariable
leaks out, regardless of whetherhandler
is decorated.Why does
ctx.run()
not protect the top-level context from changes?Is there a workaround?
The text was updated successfully, but these errors were encountered: