[issue1255] Strange Python hangup

2007-10-25 Thread Jiri Krivanek
Jiri Krivanek added the comment: In the mena time, by intuition, I have resolved my troube exactly the way you recommend. Thanks to you, currently I also know what is he core of the problem. So the issue can be closed... __ Tracker <[EMAIL PROTECTED]>

[issue1255] Strange Python hangup

2007-10-25 Thread Facundo Batista
Facundo Batista added the comment: The deadlock happens because strptime has an import inside it, and recursive imports are not allowed in different threads. As a general rule and good coding style, don't run your code when the module is imported, but put it in a function like "main" in the seco

[issue1255] Strange Python hangup

2007-10-10 Thread Jiri Krivanek
Jiri Krivanek added the comment: One more hint: There is the coincidence of three facts: 1. It uses the thread (if I remove the thread then it works fine). 2. It is "double imported" (if I remove the outer import then it works fine). 3. There is the strptime() function being used (if I remove thi

[issue1255] Strange Python hangup

2007-10-10 Thread Jiri Krivanek
Jiri Krivanek added the comment: The reason for it is pragmatic: The whole of my application is published as .pyc files. Except of the only one which must stay .py - that one which has to be executable (+x) on Linux and thus it starts with the line: # !/usr/bin/python and then it should only cont

[issue1255] Strange Python hangup

2007-10-10 Thread Tim Golden
Tim Golden added the comment: Do you realise that the code at the bottom of bb.py is executed when you import it from aa.py? In other words, when you run aa.py, the whole of your significant code is running within an import statement. I don't know if it's the cause of the problem (although I reme