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

Ammar Askar report at bugs.python.org
Mon Nov 18 00:41:31 EST 2019


Ammar Askar <ammar at ammaraskar.com> added the comment:

That would potentially let an invalid usage slip through, since you know what you're doing, you can suppress the warning with:

  warnings.filterwarnings('ignore', category=SyntaxWarning, message='"is" with a literal')

----------
nosy: +ammar2

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


More information about the Python-bugs-list mailing list