def __sub__(self, other):
        """returns new Timecode object with added timecodes"""
        if isinstance(other, Timecode):
            subtracted_frames = self.frames - other.frames
        elif isinstance(other, int):
            subtracted_frames = self.frames - other
        else:
            raise TimecodeError(
                'Type %s not supported for arithmetic.' %
                other.__class__.__name__
            )
        return Timecode(self._framerate, start_timecode=None,
                        frames=subtracted_frames)
def __sub__ ( self , other ) : if isinstance ( other , Timecode ) : subtracted_frames = self . frames - other . frames elif isinstance ( other , int ) : subtracted_frames = self . frames - other else : raise TimecodeError ( 'Type %s not supported for arithmetic.' % other . __class__ . __name__ ) return Timecode ( self . _framerate , start_timecode = None , frames = subtracted_frames )
returns new Timecode object with added timecodes