Re: sys.excepthook and threads

2007-04-12 Thread Dr. Peer Griebel
ian schrieb:
  Hi,
 
  sys.excepthook don't work if an exception come in a thread...
  It's normal or its a bug ? There are any tip ? look here :
  http://spyced.blogspot.com/2005_06_01_archive.html
 
  Thx

I think sys.excepthook is a thread local variable.  This means the
variable has to be set by the thread for which it should be active.

You did set sys.excepthook in your main thread. This setting is not
propagated to your newly created thread.

This is my observation...

Peer

-- 
http://mail.python.org/mailman/listinfo/python-list


sys.excepthook and threads

2007-03-27 Thread ian
Hi,

sys.excepthook don't work if an exception come in a thread...
It's normal or its a bug ? There are any tip ? look here :
http://spyced.blogspot.com/2005_06_01_archive.html

Thx


-- 
http://mail.python.org/mailman/listinfo/python-list