sys.excepthook and threads

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ian

    #1

    sys.excepthook and threads

    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 :


    Thx


  • Dr. Peer Griebel

    #2
    Re: sys.excepthook and threads

    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 :

    >
    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

    Comment

    Working...