isinstance(SystemExit(1), Exception)
evaluiert zu True, aber dieser Abschnitt druckt "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])
Meine Testumgebung ist Python 2.6.