Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add methods to PyObject for Is, Equals and NotEquals #151

Merged
merged 6 commits into from
Aug 22, 2024
Merged

Add methods to PyObject for Is, Equals and NotEquals #151

merged 6 commits into from
Aug 22, 2024

Conversation

tonybaloney
Copy link
Owner

Also adds operator overloads.

This now works:

// Test rich comparisons of mixed types
var obj11 = PyObject.From(3.0);
var obj12 = PyObject.From(3);
Assert.True(obj11!.Equals(obj12!));
Assert.True(obj11 == obj12);

@tonybaloney tonybaloney marked this pull request as ready for review August 21, 2024 07:50
@tonybaloney tonybaloney merged commit 6645dd7 into main Aug 22, 2024
24 of 25 checks passed
@tonybaloney tonybaloney deleted the is branch August 22, 2024 00:39
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