diff options
Diffstat (limited to 'pypy/rlib/rarithmetic.py')
-rw-r--r-- | pypy/rlib/rarithmetic.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pypy/rlib/rarithmetic.py b/pypy/rlib/rarithmetic.py index e552b385c9..84552eaf59 100644 --- a/pypy/rlib/rarithmetic.py +++ b/pypy/rlib/rarithmetic.py @@ -501,6 +501,11 @@ class r_singlefloat(object): def __cmp__(self, other): raise TypeError("not supported on r_singlefloat instances") + def __eq__(self, other): + return self.__class__ is other.__class__ and self._bytes == other._bytes + + def __ne__(self, other): + return not self.__eq__(other) class For_r_singlefloat_values_Entry(extregistry.ExtRegistryEntry): _type_ = r_singlefloat |