Mercurial > pysmcl
changeset 276:ebec4ece9b58
range_analysis: made comparison of range objects with tuples possible
author | Sigurd Meldgaard <stm@daimi.au.dk> |
---|---|
date | Thu, 11 Mar 2010 11:15:27 +0100 |
parents | 92577eba8379 |
children | 1295cec4a287 |
files | pysmcl/range_analysis.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pysmcl/range_analysis.py Thu Mar 11 11:14:25 2010 +0100 +++ b/pysmcl/range_analysis.py Thu Mar 11 11:15:27 2010 +0100 @@ -70,6 +70,8 @@ def __eq__(self, other): if isinstance(other, Bottom): return False + elif isinstance(other, tuple): + return RangeC(other[0], other[1]) == self else: return other.a == self.a and other.b == self.b