diff --git a/lib/_range.py b/lib/_range.py index c4e0d4e8..47b82086 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: