New submission from Bill Steinmetz <bill.steinm...@gmail.com>: Here's my Python version info: Python 2.6.5 (r265:79096, Mar 19 2010, 18:02:59) [MSC v.1500 64 bit (AMD64)] on win32
Here's my code that won't return (Start with a file > 4GB "hugefile.bin"): siz = (1<<32) print "making array (%d) bytes" % siz fin = open("hugefile.bin","rb") a = array.array("B") a.fromfile(fin, siz) fin.close() print "writing array (%d) bytes" % siz fout = open("foo.bin","wb") a.tofile(fout) print "wrote 2^32 bytes with array.tofile" I never get the third print statement :( ---------- components: Extension Modules messages: 107964 nosy: Bill.Steinmetz priority: normal severity: normal status: open title: array.array.tofile cannot write arrays of sizes > 4GB, even compiled for amd64 versions: Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9015> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com