diff --git a/lib/_range.py b/lib/_range.py index 29e18368..35516ac7 100644 --- a/lib/_range.py +++ b/lib/_range.py @@ -140,7 +140,7 @@ class Range(object): def __lt__(self, other): if not isinstance(other, Range): return NotImplemented - for attr in self.__slots__: + for attr in ('_lower', '_upper', '_bounds'): self_value = getattr(self, attr) other_value = getattr(other, attr) if self_value == other_value: