Issue1721204

classification
Title: there is no threading.local()
Type: Severity: normal
Components: Library Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: amak, cgroves, hsk0, irmen, mehendran
Priority: normal Keywords:

Created on 2007-05-18.09:45:24 by irmen, last changed 2007-12-12.09:42:38 by cgroves.

Messages
msg1605 (view) Author: Irmen de Jong (irmen) Date: 2007-05-18.09:45:24
The threading module lacks the 'threading.local' type.
This was introduced in Python 2.4 to be able to create thread-local variables.
msg1606 (view) Author: Alan Kennedy (amak) Date: 2007-05-19.12:04:10
Currently, there is no "official" support for thread-locals in jython.

But there is a simple workaround to get thread-local support on jython 2.2; I've written it up on this wiki page

http://wiki.python.org/jython/ThreadLocalVariables

That should get you up and running until jython has explicit support for thread-locals.
msg1607 (view) Author: howard kapustein (hsk0) Date: 2007-05-20.19:45:53
Also, since threading.local appeared in CPython 2.4 and Jython 2.2 is CPython 2.2ish (ish; some 2.3+ features are present) and the official word, last I recall, was Jython 2.2 == CPython 2.2/2.3, threading.local's absence should be unsurprising.

The Jython roadmap should clearly spell out when CPython 2.4 features will appear (I forget if it's v.next or after).
msg1608 (view) Author: Mehendran (mehendran) Date: 2007-11-29.10:24:35
I am looking at this bug. I will come with the patch soon.
msg1609 (view) Author: Mehendran (mehendran) Date: 2007-12-07.15:11:58
Patch for this bug is attached with ID [ 1846247 ].
msg1610 (view) Author: Charlie Groves (cgroves) Date: 2007-12-12.09:42:38
Added to trunk in 3801.
History
Date User Action Args
2007-05-18 09:45:24irmencreate