Skip to content

Replace more equality checks with identity checks#195

Open
aaronj0 wants to merge 1 commit intocompiler-research:masterfrom
aaronj0:eq-checks
Open

Replace more equality checks with identity checks#195
aaronj0 wants to merge 1 commit intocompiler-research:masterfrom
aaronj0:eq-checks

Conversation

@aaronj0
Copy link
Copy Markdown
Collaborator

@aaronj0 aaronj0 commented Mar 27, 2026

No description provided.

Copy link
Copy Markdown

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

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

Can you add the motivation of that change in the commit log?

From root-project/root@d5bbb36

Enforces more strict comparison operator implementation in cppyy. Python falls back to using "is" when the equality operator is not implemented. This is to ensure that we don't use some hacks in cppyy where if there is no C++ side equality operator then we check if the types match, if the pointers match and this is not optimal.
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.

3 participants