KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
isinstance(SystemExit(1), Exception) evals to True, but this snippet prints "caught by bare except SystemExit(1,)" . try: sys.exit(0) except Exception, e: print 'caught by except Exception', str(e) except: print 'caught by bare except', repr(sys.exc_info()[1]) My testing environment is Python 2.6.
Tags (comma-separated)
Save Edits
Cancel