8 Apr
2016
8 Apr
'16
12:28 p.m.
On Sat, Apr 9, 2016 at 4:24 AM,
Python may be able to do something here. One possible thing is a new exception hierarchy, there may be other solutions. This may be sufficient but I doubt it:
def is_a_bug(e): return isinstance(e, AssertionError)
The reason I am polling python-ideas is that I can't be the only one who has ever encountered this deficiency in Python.
How about this: def is_a_bug(e): return True ANY uncaught exception is a bug. Any caught exception is not a bug. ChrisA