Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implemented dynamic equality and inequality forPyObject instances#1849

Merged
lostmsu merged 1 commit intopythonnet:masterfrom
losttech:bugs/1848
Jun 30, 2022
Merged

Implemented dynamic equality and inequality forPyObject instances#1849
lostmsu merged 1 commit intopythonnet:masterfrom
losttech:bugs/1848

Conversation

@lostmsu
Copy link
Member

Also fixed unhandled Python errors during comparison attempts

What does this implement/fix? Explain your changes.

For== and!= operators in C# to use Python equalityPyObject must implementoperator == andoperator !=. C# ignoresTryBinaryOperation implementation for equality comparisons.

The "also" part clears Python error when comparison can not be performed.

Does this close any currently open issues?

#1848

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • Updated theCHANGELOG

fixed unhandled Python errors during comparison attemptsfixespythonnet#1848
@lostmsulostmsu merged commit21c5dcc intopythonnet:masterJun 30, 2022
@lostmsulostmsu deleted the bugs/1848 branchJune 30, 2022 23:42
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@lostmsu

[8]ページ先頭

©2009-2026 Movatter.jp