def __mul__(self, factor):
    ' Concatenation of two codes or appendage the same code factor times\n        in case of integer factor.\n\n        Args:\n            factor (int or BinaryCode): the BinaryCode to concatenate. In case\n                of int, it will append the code to itself factor times.\n\n        Returns (BinaryCode): segmented or concatenated code\n        '
    twin = copy.deepcopy(self)
    twin *= factor
    return twin
Concatenation of two codes or appendage the same code factor times
in case of integer factor.

Args:
    factor (int or BinaryCode): the BinaryCode to concatenate. In case
        of int, it will append the code to itself factor times.

Returns (BinaryCode): segmented or concatenated code
def __mul__(self, factor):
    ' Concatenation of two codes or appendage the same code factor times\n        in case of integer factor.\n\n        Args:\n            factor (int or BinaryCode): the BinaryCode to concatenate. In case\n                of int, it will append the code to itself factor times.\n\n        Returns (BinaryCode): segmented or concatenated code\n        '
    twin = copy.deepcopy(self)
    twin *= factor
    return twin