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 brett.cannon
Recipients brett.cannon, mark.dickinson, serhiy.storchaka
Date 2012-12-18.13:40:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1355838015.53.0.114200948537.issue16703@psf.upfronthosting.co.za>
In-reply-to
Content
As Mark pointed out, this is on purpose and is not going to change since Python lacks block-level scoping of variables and thus causes the last case related to the variable to take precedence. It might be a little unexpected, but it's not that unreasonable when you think about scoping rules and understand how 'except' blocks work.
History
Date User Action Args
2012-12-18 13:40:15brett.cannonsetrecipients: + brett.cannon, mark.dickinson, serhiy.storchaka
2012-12-18 13:40:15brett.cannonsetmessageid: <1355838015.53.0.114200948537.issue16703@psf.upfronthosting.co.za>
2012-12-18 13:40:15brett.cannonlinkissue16703 messages
2012-12-18 13:40:14brett.cannoncreate