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

Call __eq__ from __ne__ for user defined __eq__ #593

Merged
merged 1 commit into from
Nov 25, 2023
Merged

Commits on Nov 25, 2023

  1. Call __eq__ from __ne__ for user defined __eq__

    If a user manually defines an `__eq__` for a `Struct` class, the default
    `__ne__` implementation will now call the user-defined `__eq__` and
    invert the result, rather than applying the standard `__ne__` logic.
    This makes it easier for users to manually override `__eq__`, and
    matches the behavior of standard python classes.
    jcrist committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    751247b View commit details
    Browse the repository at this point in the history