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 gvanrossum
Recipients Mark.Shannon, chris.jerdonek, corona10, gvanrossum, iritkatriel, lukasz.langa, miss-islington, pablogsal, vstinner
Date 2021-08-17.18:55:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
So there's code generated for an except clause with a variable that clears the variable at the end, so that this works:

except Exception as err:
print(err)  # Should fail, since err was cleared when the except clause exited.

Maybe there's a bug here, either in the runtime or in the way that the code is generated?
Date User Action Args
2021-08-17 18:55:09gvanrossumsetrecipients: + gvanrossum, vstinner, chris.jerdonek, lukasz.langa, Mark.Shannon, corona10, pablogsal, miss-islington, iritkatriel
2021-08-17 18:55:09gvanrossumsetmessageid: <>
2021-08-17 18:55:09gvanrossumlinkissue44895 messages
2021-08-17 18:55:09gvanrossumcreate