[issue9611] FileIO not 64-bit safe under Windows

2010-11-04 Thread Martin Spacek
Martin Spacek added the comment: We've got a near duplicate Issue9015. This thread seems more considered though :) Note that writing more than 2**32-1 bytes at once results in a hung process with 100% CPU in 64-bit Windows, which has to be killed with Task Manager. So I think that qual

[issue9015] f.write(s) for s > 2GB hangs in win64 (and win32?)

2010-11-04 Thread Martin Spacek
Martin Spacek added the comment: I suppose someone should confirm this problem on Py > 2.6? -- components: +Extension Modules, Windows ___ Python tracker <http://bugs.python.org/iss

[issue9015] f.write(s) for s > 2GB hangs in win64 (and win32?)

2010-11-04 Thread Martin Spacek
Martin Spacek added the comment: It turns out this isn't just a problem with array.array. It's a problem with Python's file.write() as well. Here's my test code: # file.write() test: FOURGBMINUS = 2**32 - 16 s = '0123456789012345' # 16 bytes longs = ''.

[issue9015] array.array.tofile cannot write arrays of sizes > 4GB, even compiled for amd64

2010-11-03 Thread Martin Spacek
Martin Spacek added the comment: NumPy is addressing this with a workaround in its ndarray, calling fwrite multiple times in reasonably sized chunks. See http://projects.scipy.org/numpy/ticket/1660 -- nosy: +mspacek type: -> crash ___ Pyt