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 nikratio
Recipients amaury.forgeotdarc, anacrolix, docs@python, ncoghlan, nikratio, swapnil, verigak
Date 2010-09-17.18:58:20
SpamBayes Score 1.3549646e-07
Marked as misclassified No
Message-id <1284749902.85.0.0912884895974.issue6627@psf.upfronthosting.co.za>
In-reply-to
Content
@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().
History
Date User Action Args
2010-09-17 18:58:23nikratiosetrecipients: + nikratio, amaury.forgeotdarc, ncoghlan, verigak, swapnil, anacrolix, docs@python
2010-09-17 18:58:22nikratiosetmessageid: <1284749902.85.0.0912884895974.issue6627@psf.upfronthosting.co.za>
2010-09-17 18:58:20nikratiolinkissue6627 messages
2010-09-17 18:58:20nikratiocreate