[issue45060] Do not use the equality operators with None

2021-09-03 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45060] Do not use the equality operators with None

2021-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset e2b29304137e6253b7bb89c180ef5d113d60b4eb by Serhiy Storchaka in branch '3.10': [3.10] bpo-45060: Get rid of few uses of the equality operators with None (GH-28087). (GH-28092)

[issue45060] Do not use the equality operators with None

2021-09-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e09dd8aafd6f9aef03945c417267806d47084a5d by Serhiy Storchaka in branch '3.9': [3.9] bpo-45060: Get rid of few uses of the equality operators with None (GH-28087). (GH-28093)

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26536 pull_request: https://github.com/python/cpython/pull/28093 ___ Python tracker ___

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26535 pull_request: https://github.com/python/cpython/pull/28092 ___ Python tracker ___

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3c65457156d87e55010507d616b4eecb7a02883d by Serhiy Storchaka in branch 'main': bpo-45060: Get rid of few uses of the equality operators with None (GH-28087) https://github.com/python/cpython/commit/3c65457156d87e55010507d616b4eecb7a02883d

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26530 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28087 ___ Python tracker

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : 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