in distill/segmentation/segments.py [0:0]
def append_segments(self, segments):
"""
Adds all Segment objects in the given Segments object to the current Segments object.
:param segments: A Segments object to append to the calling Segments object.
"""
if not isinstance(segments, distill.Segments):
raise TypeError("Only Segments objects can be appended with append_segments.")
self.segments.extend(segments.segments)