[issue12064] unexpected behavior with exception variable
Mathias Svensson
report at bugs.python.org
Thu May 12 19:52:56 CEST 2011
New submission from Mathias Svensson <freaken at freaken.dk>:
Current behavior:
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.
Excepted behavior:
The only reasonable behaviors are keeping the original variable or keeping the exception. The current behavior is very unintuitive.
----------
components: Interpreter Core
files: test.py
messages: 135845
nosy: Mathias.Svensson
priority: normal
severity: normal
status: open
title: unexpected behavior with exception variable
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file21984/test.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12064>
_______________________________________
More information about the Python-bugs-list
mailing list