New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

There are few uses of operators "==" and "!=" with None in the stdlib (against 
more than 8000 uses of "is" and "is not"). It is very uncommon writing, 
contradicts PEP 8, and is not safe in general.

One bug was found -- using "==" instead of assignment (issue45059).

----------
components: Library (Lib)
messages: 400715
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Do not use the equality operators with None
versions: Python 3.10, Python 3.11, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45060>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to