R
RT Lange
class E1(Exception): pass
Traceback (most recent call last):
File "<pyshell#5>", line 1, in ?
raise E1(i)
E1: fooTraceback (most recent call last):
File "<pyshell#6>", line 1, in ?
raise E1, i
E2: foo
Is there a reason the exception type is not the same?
Is this behavior something that should be expected?
Traceback (most recent call last):
File "<pyshell#5>", line 1, in ?
raise E1(i)
E1: fooTraceback (most recent call last):
File "<pyshell#6>", line 1, in ?
raise E1, i
E2: foo
Is there a reason the exception type is not the same?
Is this behavior something that should be expected?