[issue3021] Lexical exception handlers

Antoine Pitrou report at bugs.python.org
Sat Jun 7 07:33:48 CEST 2008


Antoine Pitrou <pitrou at free.fr> added the comment:

Ok, it makes sense to have the same behaviour for except and finally
blocks then. As for the syntax error, I'm still not convinced. The point
of Py3k is to change semantics: people should expect some incompatible
changes. Also the previous behaviour was rather under-specified, so it
could be considered a bug. And it seems to me syntax errors should be
used to guard against potential syntax mistakes, not semantic subtleties.

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


More information about the Python-bugs-list mailing list