[issue24321] interaction of nonlocal and except leading to incorrect behavior

R. David Murray report at bugs.python.org
Fri May 29 13:55:17 CEST 2015


R. David Murray added the comment:

Indeed, if you replace the except clause with a 'del x', you get the same UnboundLocalError.  This is working as designed.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24321>
_______________________________________


More information about the Python-bugs-list mailing list