You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hex() method of bytes, bytearray and memoryview, and the binascii.b2a_hex() function accept bytes_per_sep argument in the range of C int. This is unusual, because maximal size for in-memory structures in Python is limited by sys.maxsize. Actually, passing bytes_per_sep larger than sys.maxsize or less than -sys.maxsize does not make sense, because it will be larger than the length of the converted byte sequence. But this is not so for C int. You get an OverflowError trying to insert a separator every 10GiB in 100GiB data. Yes, the example is not realistic, but this is a matter of principal possibility.
Activity
pythongh-147944: Increase range of bytes_per_sep
gh-147944: Increase range of bytes_per_sep (GH-147946)
pythongh-147944: Increase range of bytes_per_sep (pythonGH-147946)
pythongh-147944: Increase range of bytes_per_sep (pythonGH-147946)