Skip to content
Advertisement

Tag: int

converting large int list to byte string python

I need to convert int list into a byte string but I don’t know how. I can’t use bytes() because the values are too large. I get this error: The expected value is: Answer You can use .to_bytes to return an array of bytes representing an integer. Note: This works only in python 3.1 and above. For example:

Advertisement