def __rmul__(self, factor):
    ' Appending the same code factor times.\n\n        Args:\n            factor (int): integer defining number of appendages.\n\n        Returns (BinaryCode): Segmented code.\n\n        Raises:\n            TypeError: factor must be an integer\n        '
    if isinstance(factor, (numpy.int32, numpy.int64, int)):
        return (self * factor)
    else:
        raise TypeError('the left multiplier must be an integer to aBinaryCode. Was given {} of type {}'.format(factor, type(factor)))
Appending the same code factor times.

Args:
    factor (int): integer defining number of appendages.

Returns (BinaryCode): Segmented code.

Raises:
    TypeError: factor must be an integer
def __rmul__(self, factor):
    ' Appending the same code factor times.\n\n        Args:\n            factor (int): integer defining number of appendages.\n\n        Returns (BinaryCode): Segmented code.\n\n        Raises:\n            TypeError: factor must be an integer\n        '
    if isinstance(factor, (numpy.int32, numpy.int64, int)):
        return (self * factor)
    else:
        raise TypeError('the left multiplier must be an integer to aBinaryCode. Was given {} of type {}'.format(factor, type(factor)))