def union((s_exc1, s_exc2)): return SomeException(s_exc1.classdefs | s_exc2.classdefs)
def new_exception(self, exc_classes): clsdefs = {self.getuniqueclassdef(cls) for cls in exc_classes} return SomeException(clsdefs)