[Python-Dev] Re: Does anyone use threading debug PYTHONTHREADDEBUG=1 env var? Can I remove it?

2021-07-07 Thread Guido van Rossum
I agree, that flag was probably last useful when we were debugging the threading machinery itself. (Evidenced by it only working on --with-pydebug, which is for when you're debugging CPython itself, not any user apps.) On Wed, Jul 7, 2021 at 9:33 AM Gregory P. Smith wrote: > > > On Wed, Jul 7, 2

[Python-Dev] Re: Does anyone use threading debug PYTHONTHREADDEBUG=1 env var? Can I remove it?

2021-07-07 Thread Gregory P. Smith
On Wed, Jul 7, 2021 at 2:28 AM Victor Stinner wrote: > Hi, > > Does anyone use threading debug PYTHONTHREADDEBUG=1 env var on a > Python debug build? If not, can I just remove it? > > -- > > To fix a race condition at thread exit on Linux using the glibc, I > removed calls to pthread_exit() (PyTh

[Python-Dev] Does anyone use threading debug PYTHONTHREADDEBUG=1 env var? Can I remove it?

2021-07-07 Thread Victor Stinner
Hi, Does anyone use threading debug PYTHONTHREADDEBUG=1 env var on a Python debug build? If not, can I just remove it? -- To fix a race condition at thread exit on Linux using the glibc, I removed calls to pthread_exit() (PyThread_exit_thread()) in the _thread module: https://bugs.python.org