exceptlib might not be the correct repository for this feature, but consider:
try:
...
except ThisException >= ThatException:
...
The basic idea is that some programs might have a characteristic range of exceptions, and these exceptions might have some essential order or maybe some sort of compactness that, at certain layers, necessitates exception handling by comparison.
exceptlibmight not be the correct repository for this feature, but consider:The basic idea is that some programs might have a characteristic range of exceptions, and these exceptions might have some essential order or maybe some sort of compactness that, at certain layers, necessitates exception handling by comparison.