sys.excepthook and threads

D

Dr. Peer Griebel

ian said:
> 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top