homepage

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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, ddvoinikov, pitrou
Date 2008年05月13日.09:10:20
SpamBayes Score 0.15422493
Marked as misclassified No
Message-id <1210669825.84.0.254949978949.issue2833@psf.upfronthosting.co.za>
In-reply-to
Content
Note that the problem is not related to "with", but with nested
exception handlers:
try:
 raise Exception("foo")
except:
 try: pass
 except: pass
 raise # in Py2.5 throws 'foo', in Py3.0 fails with RuntimeError
OTOH, python has always had poor support for nested exceptions; tried
with python24 and python25::
 try:
 raise Exception("foo")
 except:
 try: raise KeyError("caught")
 except KeyError: pass
 raise # reraise the KeyError...
This does not happen if the two lines with KeyError are moved in another
function.
History
Date User Action Args
2008年05月13日 09:10:26amaury.forgeotdarcsetspambayes_score: 0.154225 -> 0.15422493
recipients: + amaury.forgeotdarc, pitrou, ddvoinikov
2008年05月13日 09:10:25amaury.forgeotdarcsetspambayes_score: 0.154225 -> 0.154225
messageid: <1210669825.84.0.254949978949.issue2833@psf.upfronthosting.co.za>
2008年05月13日 09:10:24amaury.forgeotdarclinkissue2833 messages
2008年05月13日 09:10:22amaury.forgeotdarccreate

AltStyle によって変換されたページ (->オリジナル) /