[New-bugs-announce] [issue42815] new thread doesn't copy context of the parent thread
report at bugs.python.org
Sun Jan 3 06:43:34 EST 2021
New submission from Yurii Karabas <1998uriyyo at gmail.com>:
New thread doesn't copy context of the parent thread.
The minimal example to reproduce the issue:
from threading import Thread
from contextvars import ContextVar
foo: ContextVar[str] = ContextVar("foo")
t = Thread(target=temp)
Is it expected behavior?
PEP 567 I didn't find anything regarding this case.
components: Library (Lib)
title: new thread doesn't copy context of the parent thread
versions: Python 3.10
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce