[issue34850] Emit a syntax warning for "is" with a literal

Neil Schemenauer report at bugs.python.org
Thu Oct 4 14:23:24 EDT 2018


Neil Schemenauer <nas-python at arctrix.com> added the comment:

> The problem with a SyntaxWarning is that the wrong people will see it. It gets in the way of users of applications that happen to be written in Python.

Turn the check on only when PYTHONDEVMODE is set?  Seems like it solves the issue with the wrong people seeing the warning.

----------
nosy: +nascheme

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34850>
_______________________________________


More information about the Python-bugs-list mailing list