Serhiy Storchaka added the comment: On 32-bit platform the size of empty bytes object is 17 bytes not counting padding and GC links. Plus 4 bytes for a pointer in a list. On 64 bit platform numbers are about twice larger. Therefore add at least 20-40 bytes per line.
Is not 100 MiB too large for a list in memory? For files we could use larger limit, but the problem is that file can be io.BytesIO(). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28971> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com