Author brunogola
Recipients belopolsky, brunogola
Date 2008-05-10.20:02:55
SpamBayes Score 0.00122629
Marked as misclassified No
Message-id <1210449776.9.0.634905770778.issue2380@psf.upfronthosting.co.za>
In-reply-to
Content
Should nested tuples in an except clause be a valid syntax?
like:
...
except ((ValueError, Exception), TypeError, (...)):
    pass

I don't see any benefit and because of this behavior the implementation
(in Python/errors.c and in the patch attached) will use recursive function. 

I think that any objects inside a tuple in an except clause should be
treated equally (as an object), even a tuple, so the except clause above
should be an error in py3k and should produce a warning because the list
objects does not inherits BaseException.

Please, see my comment in http://bugs.python.org/issue2345, it is
related to this issue.
History
Date User Action Args
2008-05-10 20:02:57brunogolasetspambayes_score: 0.00122629 -> 0.00122629
recipients: + brunogola, belopolsky
2008-05-10 20:02:56brunogolasetspambayes_score: 0.00122629 -> 0.00122629
messageid: <1210449776.9.0.634905770778.issue2380@psf.upfronthosting.co.za>
2008-05-10 20:02:56brunogolalinkissue2380 messages
2008-05-10 20:02:55brunogolacreate