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

Steven D'Aprano report at bugs.python.org
Sun Sep 30 08:28:58 EDT 2018


Steven D'Aprano <steve+python at pearwood.info> added the comment:

I like this solution of a syntax warning for `is <literal>` and I agree that `== None` should not be a warning.

(And for what its worth, I strongly disagree with making `is` a hybrid sometimes-check-identity-sometimes-check-equality operator.)

----------
nosy: +steven.daprano

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


More information about the Python-bugs-list mailing list