STINNER Victor added the comment: > (e.g on 64-bit Windows)
Platforms with sizeof(long) < sizeof(size_t), I only know one platform: Windows 64-bit. Since this change only impacts Windows 64-bit, we must compile (to check for compilation warnings) and run tests with this patch on Windows 64-bit. Many other similar issues has been fixed in Python 3. I'm not sure that it's worth to spend too much time on supporting the full 64-bit range on Python 2, it's almost a new feature no? Examples: * issue #9611: FileIO not 64-bit safe under Windows (Python 2 fixed) * issue #9566: Compilation warnings under x64 Windows (not fixed in Python 2) * issue #16367: io.FileIO.readall() is not 64-bit safe on Windows (Python 2 fixed) * issue #17931: PyLong_FromPid() is not correctly defined on Windows 64-bit (not fixed in Python 2?) * issue #15792: Fix compiler options for x64 builds on Windows (not fixed in Python 2) * etc. ---------- title: The range for xrange() is too narrow -> The range for xrange() is too narrow on Windows 64-bit _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26428> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com