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
{{ message }}
Repository navigation
BytesIO and StringIO issues with large sizes #160781
FYI, I saw this error yesterday on some of the buildbots (32-bit platforms maybe):
ERROR: test_issue141311 (test.test_memoryio.PyBytesIOTest.test_issue141311)----------------------------------------------------------------------
Traceback (most recent call last):
File "/buildbot/buildarea/pull_request.ware-debian-x86.installed/build/target/lib/python3.14/test/test_memoryio.py", line 571, in test_issue141311
self.assertEqual(memio.getvalue(), b"")
~~~~~~~~~~~~~~^^ File "/buildbot/buildarea/pull_request.ware-debian-x86.installed/build/target/lib/python3.14/_pyio.py", line 901, in getvalue
return bytes(self._buffer)
OverflowError: byte string is too large
Perhaps this has already been resolved but I'm posting this in case it's still failing.
Activity
gh-160781: Fix `StringIO.truncate()` rejecting sizes above `2**31 - 1…
gh-160781: Fix `BytesIO` overflow handling for large sizes (#160783)
[3.14] gh-160781: Fix `BytesIO` overflow handling for large sizes (GH…
[3.15] gh-160781: Fix `BytesIO` overflow handling for large sizes (GH…
gh-160781: Only test BytesIO write overflow on the C implementation (#…
[3.14] gh-160781: Only test BytesIO write overflow on the C implement…
[3.15] gh-160781: Only test BytesIO write overflow on the C implement…
[3.15] pythongh-160781: Fix `StringIO.truncate()` rejecting sizes abo…
[3.15] gh-160781: Fix `StringIO.truncate()` rejecting sizes above `2*…
nascheme commentedon Oct 30, 2026
FYI, I saw this error yesterday on some of the buildbots (32-bit platforms maybe):
Perhaps this has already been resolved but I'm posting this in case it's still failing.
StanFromIreland commentedon Oct 30, 2026
@nascheme thanks for letting us know, however, was it before or after 8dbc313 (can you please send a link to the run?).
nascheme commentedon Oct 30, 2026
Here's one of the failed builds, git revision c866403. It seems that 8dbc313 is not in that branch.
https://buildbot.python.org/#/builders/1285/builds/822
StanFromIreland commentedon Oct 30, 2026
I'd presume it was fixed by it, if it pops up with that commit please let me know.