[Python-3000] remove tuple exceptions?

Jean-Paul Calderone exarkun at divmod.com
Fri Mar 2 23:44:22 CET 2007


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 -- but
>really only raising its (recursively) first element?
>

This, basically:


   SomeCondition = (FooException, BarException)
   AnotherCondition = (SomeCondition, BazException)

   try:
      ...
   except SomeCondition, e:
      ...
      raise AnotherCondition

Jean-Paul


More information about the Python-3000 mailing list