Skip to content

gh-112125: Fix None.__ne__(None) returning NotImplemented instead of False#112504

Merged
vstinner merged 1 commit into
python:mainfrom
andrewluotechnologies:andrew
Dec 7, 2023
Merged

gh-112125: Fix None.__ne__(None) returning NotImplemented instead of False#112504
vstinner merged 1 commit into
python:mainfrom
andrewluotechnologies:andrew

Conversation

@andrewluotechnologies

@andrewluotechnologies andrewluotechnologies commented Nov 28, 2023

Copy link
Copy Markdown
Contributor

I tested this fix on Windows 11 with VS2022. Compiled and ran None.__ne__(None) before and after my changes. Result before: NotImplemented, after: False

Note: 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.

@ghost

ghost commented Nov 28, 2023

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app

bedevere-app Bot commented Nov 28, 2023

Copy link
Copy Markdown

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 skip news label instead.

Comment thread Objects/object.c Outdated
@bedevere-app

bedevere-app Bot commented Dec 3, 2023

Copy link
Copy Markdown

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 skip news label instead.

@bedevere-app

bedevere-app Bot commented Dec 3, 2023

Copy link
Copy Markdown

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 skip news label instead.

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread Lib/test/test_builtin.py
Comment thread Objects/typeobject.c Outdated
@miss-islington-app

Copy link
Copy Markdown

Thanks @andrewluotechnologies for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @andrewluotechnologies and @vstinner, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 9c3458e05865093dd55d7608810a9d0ef0765978 3.12

@bedevere-app

bedevere-app Bot commented Dec 7, 2023

Copy link
Copy Markdown

GH-112827 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.12 only security fixes label Dec 7, 2023
@vstinner

vstinner commented Dec 7, 2023

Copy link
Copy Markdown
Member

Merged, thank you. I backported the change manually to 3.12 to fix a merge conflict.

vstinner added a commit that referenced this pull request Dec 7, 2023
…ead of … (#112827)

gh-112125: Fix None.__ne__(None) returning NotImplemented instead of False (#112504)

(cherry picked from commit 9c3458e)

Co-authored-by: andrewluotechnologies <44252973+andrewluotechnologies@users.noreply.github.com>
@andrewluotechnologies andrewluotechnologies deleted the andrew branch December 7, 2023 15:40
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants