New threads should inherit the contextvars.Context of their creator #128555
Labels
extension-modules
C modules in the Modules dir
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-feature
A feature request or enhancement
Feature or enhancement
Proposal:
It would be convenient and likely less surprising if threads inherited the context of their creator, rather than starting with an empty context. This would match what
asynio.Task
does. This has been requested before, as gh-86981.Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
https://discuss.python.org/t/thread-safe-warning-filters/
Linked PRs
The text was updated successfully, but these errors were encountered: