Thomas Dybdahl Ahle added the comment:
I run this now in the beginning of my code. As far as I can see it works
fine.
if not hasattr(Thread, "_Thread__bootstrap_inner"):
class SafeThread (Thread):
def encaps(self):
try:
self._Thread__bootstrap_inner()
except:
if self.__daemonic and sys_ is None:
return
raise
setattr(SafeThread, "_Thread__bootstrap_inner",
SafeThread._Thread__bootstrap)
setattr(SafeThread, "_Thread__bootstrap", SafeThread.encaps)
threading.Thread = SafeThread
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1731>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com