On Fri, 25 Jan 2019 at 10:15, Eric V. Smith <e...@trueblade.com> wrote:
> It would be a change if the code is never called. I'm not sure we care
> about code that's never called, but it is a change.

The biggest problem with converting runtime errors to compile time
errors is that it means affected dead code goes from being a
readability & maintainability problem to "Python X.Y breaks my
project".

SyntaxWarning splits the difference nicely, since the compiler
complains about the same dead code that would confuse a human reader,
but also ignores it and moves on.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to