Ronald Oussoren added the comment: The attached patch should fix both issues (but doesn't contain a test, not sure if its worthwhile to add a testcase that uses more than 4 GByte of memory)
FWIW: the corresponding code in Objects/bytesobject.c in the 3.3 and default branches is already correct. ---------- keywords: +needs review, patch stage: -> patch review Added file: http://bugs.python.org/file30886/issue-18427-py27.txt _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18427> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com