Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Interval(namedtuple('IntervalBase', ['begin', 'end', 'data'])):
- __slots__ = () # Saves memory, avoiding the need to create __dict__ for each interval
- def __new__(cls, begin, end, data=None):
- return super(Interval, cls).__new__(cls, begin, end, data)
Add Comment
Please, Sign In to add comment