def byte_size(number):
    '''
    Returns the number of bytes required to hold a specific long number.
    
    The number of bytes is rounded up.

    Usage::

        >>> byte_size(1 << 1023)
        128
        >>> byte_size((1 << 1024) - 1)
        128
        >>> byte_size(1 << 1024)
        129

    :param number:
        An unsigned integer
    :returns:
        The number of bytes required to hold a specific long number.
    '''
    quanta, mod = divmod(bit_size(number), 8)
    if mod or number is 0:
        quanta += 1
    return quanta
    #return int(math.ceil(bit_size(number) / 8.0))
dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/rsa/common.py/byte_size/operator `==` -> `is`