En Thu, 12 Jul 2007 06:30:45 -0300, [EMAIL PROTECTED]  
<[EMAIL PROTECTED]> escribió:

> I am getting quite confused with this SystemExit.
> If I register a custom sys.excepthook then it is never invoked
> when I do sys.exit(.)

No, sys.excepthook won't be called for SystemExit:

py> help(sys)
Help on built-in module sys:
[...]
     excepthook -- called to handle any uncaught exception other than  
SystemExit

Unfortunately help(sys.excepthook) does not provide the same information,  
neither the docs for the sys module. (Should be corrected...)

-- 
Gabriel Genellina

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

Reply via email to