[issue1596321] KeyError at exit after 'import threading' in other thread

2010-01-18 Thread Christian Walther
Christian Walther added the comment: I have the impression we're tracking two completely unrelated problems in this tracker item. As to "needs patch" regarding my problem: Here's the solution I proposed in my original post in patch form - I'm just not sure

[issue1596321] KeyError at exit after 'import threading' in other thread

2008-01-18 Thread Christian Walther
Christian Walther added the comment: > Is the bug avoided if you import threading first and use it instead of thread? Yes. The bug happens when the (first) import of threading and the call to Py_Finalize() happen in different threads. To reproduce the problem in pure Python, I therefore h

[issue1596321] KeyError at exit after 'import threading' in other thread

2008-01-17 Thread Christian Walther
Christian Walther added the comment: I'm not sure what you mean by "doesn't fail" - from the output you quote, I'd say that it does fail. It's in fact the same output as I get right now with Python 2.5.1 on Mac OS X. Would you classify that