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

Serhiy Storchaka report at bugs.python.org
Thu Oct 4 15:59:07 EDT 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

> Turn the check on only when PYTHONDEVMODE is set?

This will reduce the value of this warning to zero. If the user doesn't know that using "is" with string or numerical literals is bad and doesn't use checkers, it is unlikely that he uses PYTHONDEVMODE.

----------

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


More information about the Python-bugs-list mailing list