[docs] [issue6627] threading.local() does not work with C-created threads

Nikolaus Rath report at bugs.python.org
Fri Sep 17 20:58:23 CEST 2010

Nikolaus Rath <Nikolaus at rath.org> added the comment:

@Swapnil: the rules you quote are correct for the C extension, but do not apply when using ctypes, because ctypes is doing the required initializations automatically.

However, if Amaury is correct, ctypes performs the initializations in a way that break the threading.local functionality. 

I think the best way to address this bug would therefore be to add a warning to the ctypes documentation that C created threads will not support threading.local().

assignee:  -> docs at python
components: +Documentation -Library (Lib)
nosy: +docs at python
status: closed -> open

Python tracker <report at bugs.python.org>

More information about the docs mailing list