Perhaps we need a library for creating/managing threads that inherits all current context values?

On Thu, Aug 19, 2021 at 7:48 AM Paul Prescod <> wrote:
There are certain values that are managed independent of any specific code-accessible object. The decimal precision is a good example:

We can call these context variables. As your code shows, the true "home" of the "prec" value is not some object you manage in your code, but rather some background object called the Context.

The Context is not inherited by sub-threads.

Your code is fine, because you did not use threads. Replace the map with concurrent.futures code (as in my example).

Your code will not work properly anymore. This is the issue.
Python-ideas mailing list --
To unsubscribe send an email to
Message archived at
Code of Conduct:

--Guido van Rossum (
Pronouns: he/him (why is my pronoun here?)