Benjamin Peterson <benja...@python.org> added the comment: 2011/7/16 Nick Coghlan <rep...@bugs.python.org>: > > Nick Coghlan <ncogh...@gmail.com> added the comment: > > It also makes it clear to users whether they've just run up against a > limitation of the implementation they're using or whether what they've > written is genuinely illegal code. They are NOT the same thing. > Attempting to conflate them into one exception for the mere sake of > not adding a new exception type is a false economy. Take it to > python-dev if you want, but I will strongly oppose this check going in > with it raising an ordinary SyntaxError instead of a new subclass.
Why would it matter to users what variety of limitation they're running up against? As I said, they're still going to have to change their code. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11343> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com