Re: [Python-Dev] Add more SyntaxWarnings?

2019年1月27日 06:31:31 -0800

On 2019年1月25日 at 10:15, Eric V. Smith <[email protected]> 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 | [email protected] | Brisbane, Australia
_______________________________________________
Python-Dev mailing list
[email protected]
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