[Python-3000] remove tuple exceptions?

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Mar 3 00:42:45 CET 2007


Jean-Paul Calderone wrote:
> On Fri, 2 Mar 2007 16:35:38 -0500, Jim Jewett <jimjjewett at gmail.com> wrote:
> 
>>What is the reasoning behind allowing the raise of a tuple
>
>    SomeCondition = (FooException, BarException)
>    AnotherCondition = (SomeCondition, BazException)
>
>    except SomeCondition, e:
>       ...
>       raise AnotherCondition

So it was some sort of workaround for exceptions not
being classes? If so, it sounds like we don't need
it any more.

--
Greg


More information about the Python-3000 mailing list