[New-bugs-announce] [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>

More information about the New-bugs-announce mailing list