gh-112125: Fix None.__ne__(None) returning NotImplemented instead of False#112504
gh-112125: Fix None.__ne__(None) returning NotImplemented instead of False#112504vstinner merged 1 commit intopython:mainfrom
Conversation
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
e15fb81 to
18d5a40
Compare
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
18d5a40 to
5a5ce2c
Compare
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
vstinner
left a comment
There was a problem hiding this comment.
Would you mind to add a test and add a Changelog (NEWS) entry? See https://devguide.python.org/ on how to add a Changelog entry.
237be2c to
1bb1748
Compare
1bb1748 to
6a31b1d
Compare
|
Thanks @andrewluotechnologies for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
|
Sorry, @andrewluotechnologies and @vstinner, I could not cleanly backport this to |
…ad of False (python#112504) (cherry picked from commit 9c3458e)
|
GH-112827 is a backport of this pull request to the 3.12 branch. |
|
Merged, thank you. I backported the change manually to 3.12 to fix a merge conflict. |
I tested this fix on Windows 11 with VS2022. Compiled and ran
None.__ne__(None)before and after my changes. Result before:NotImplemented, after:FalseNote: this is my first pull request/contributing and this code wasn't my original idea - thanks to @rhettinger for suggesting the route to fix this. I only implemented the code.