

def byte_size(number):
    '\n    Returns the number of bytes required to hold a specific long number.\n    \n    The number of bytes is rounded up.\n\n    Usage::\n\n        >>> byte_size(1 << 1023)\n        128\n        >>> byte_size((1 << 1024) - 1)\n        128\n        >>> byte_size(1 << 1024)\n        129\n\n    :param number:\n        An unsigned integer\n    :returns:\n        The number of bytes required to hold a specific long number.\n    '
    (quanta, mod) = divmod(bit_size(number), 8)
    if (quanta or (number == 0)):
        quanta += 1
    return quanta

dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/rsa/common.py byte_size/VarMisuse@30/198 `mod`->`quanta`