[New-bugs-announce] [issue12064] unexpected behavior with exception variable
report at bugs.python.org
Thu May 12 19:52:56 CEST 2011
New submission from Mathias Svensson <freaken at freaken.dk>:
In the very simple attached example an existing variable-name is used as the target in the except-part of a try-statement. The existing variable is deleted if an exception is throw.
The only reasonable behaviors are keeping the original variable or keeping the exception. The current behavior is very unintuitive.
components: Interpreter Core
title: unexpected behavior with exception variable
versions: Python 3.2
Added file: http://bugs.python.org/file21984/test.py
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce