Title: Implemented dynamic equality and inequality for `PyObject` instances by lostmsu · Pull Request #1849 · pythonnet/pythonnet · GitHub
Open Graph Title: Implemented dynamic equality and inequality for `PyObject` instances by lostmsu · Pull Request #1849 · pythonnet/pythonnet
X Title: Implemented dynamic equality and inequality for `PyObject` instances by lostmsu · Pull Request #1849 · pythonnet/pythonnet
Description: Also fixed unhandled Python errors during comparison attempts What does this implement/fix? Explain your changes. For == and != operators in C# to use Python equality PyObject must implement operator == and operator !=. C# ignores TryBinaryOperation 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 the CHANGELOG
Open Graph Description: Also fixed unhandled Python errors during comparison attempts What does this implement/fix? Explain your changes. For == and != operators in C# to use Python equality PyObject must implement operat...
X Description: Also fixed unhandled Python errors during comparison attempts What does this implement/fix? Explain your changes. For == and != operators in C# to use Python equality PyObject must implement operat...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1849
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:835e2ec6-375f-c747-7776-a83b32e545e6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9BDC:AF14D:194463C:237697C:6970DC0D |
| html-safe-nonce | 6ca429f2aa7572728bc755b0842cf3d527bceef6320977086ebf8dc1562bb0a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkRDOkFGMTREOjE5NDQ2M0M6MjM3Njk3Qzo2OTcwREMwRCIsInZpc2l0b3JfaWQiOiI4MTc0NjQyNTcwODUyMzU5MTgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d45db28d97d876358a1938de3ebf340e34d1bf18a86e46b67d56dac425f1ccca |
| hovercard-subject-tag | pull_request:984342576 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/pythonnet/pythonnet/pull/1849/files |
| twitter:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| og:image:alt | Also fixed unhandled Python errors during comparison attempts What does this implement/fix? Explain your changes. For == and != operators in C# to use Python equality PyObject must implement operat... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9203e7efc62065329c3b7015a1e6d16fc14bce440abec7b0d3cbe9e4fb1e2e4 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | eb3c92b74ae48a78cffd8700b8eb5f60bad61528 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width