This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Ján Stanček, Thomas Mortensson, cstratak, davin, neologix, petr.viktorin, vstinner
Date 2018-01-09.16:21:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1515514901.33.0.467229070634.issue29640@psf.upfronthosting.co.za>
In-reply-to
Content
Python 3 is not affected by this issue because it uses native thread locale storage (TLS):

* pthread: pthread_getspecific() / pthread_setspecific()
* Windows: TlsGetValue() / TlsSetValue()

I'm not sure that it's doable to backport such enhancement, since Python 2.7 supports many thread implementations, not only NT (Windows) and pthread:

* Python/thread_atheos.h
* Python/thread_beos.h
* Python/thread_cthread.h
* Python/thread_lwp.h
* Python/thread_nt.h
* Python/thread_os2.h
* Python/thread_pth.h
* Python/thread_pthread.h
* Python/thread_sgi.h
* Python/thread_solaris.h
* Python/thread_wince.h

Maybe it's doable for a Linux vendor, but it's going to be a large change that has to be maintained downstream :-/
History
Date User Action Args
2018-01-09 16:21:41vstinnersetrecipients: + vstinner, petr.viktorin, neologix, davin, cstratak, Ján Stanček, Thomas Mortensson
2018-01-09 16:21:41vstinnersetmessageid: <1515514901.33.0.467229070634.issue29640@psf.upfronthosting.co.za>
2018-01-09 16:21:41vstinnerlinkissue29640 messages
2018-01-09 16:21:41vstinnercreate