This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, brett.cannon, gvanrossum, taicki
Date 2008-03-18.02:57:12
SpamBayes Score 0.20197125
Marked as misclassified No
Message-id <1205809033.65.0.643926664841.issue2371@psf.upfronthosting.co.za>
In-reply-to
Content
I left the following comment in issue2291 pertaining to this patch:

"""
There is also a subtle bug in the issue2371 patch:
$ cat x.py
try:
    raise ValueError
except ((ValueError,),):
    pass

$ ./python -3 x.py
x.py:3: DeprecationWarning: catching classes that do not inherit from
BaseException is not allowed in 3.x.
  except ((ValueError,),):

I am not sure if it would be acceptable to move warnings to
PyErr_GivenExceptionMatches, but if not, the checking logic should
reproduce PyErr_GivenExceptionMatches' recursive behavior.
"""
History
Date User Action Args
2008-03-18 02:57:13belopolskysetspambayes_score: 0.201971 -> 0.20197125
recipients: + belopolsky, gvanrossum, brett.cannon, taicki
2008-03-18 02:57:13belopolskysetspambayes_score: 0.201971 -> 0.201971
messageid: <1205809033.65.0.643926664841.issue2371@psf.upfronthosting.co.za>
2008-03-18 02:57:13belopolskylinkissue2371 messages
2008-03-18 02:57:12belopolskycreate