Skip to content
Commit 2c80dd55 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[bugfix] Use base classes for ImmutableRecord in correct order

A very weird bug: The order of base classes actually matters here,
because if __hash__ and __eq__ are defined in the wrong order,
__hash__ will get deleted (in 3). MWE:

```
class X(object):
    def __eq__(self, other):
        return True

class Y(object):
    def __hash__(self):
        return 0

class Z1(Y,X):
    pass

class Z2(X,Y):
    pass

hash(Z1())
hash(Z2())
```
parent 6c5830f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment