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.
If a user manually defines an
__eq__
for aStruct
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.Fixes #585.