[New-bugs-announce] [issue9015] array.array.tofile cannot write arrays of sizes > 4GB, even compiled for amd64
Bill Steinmetz
report at bugs.python.org
Thu Jun 17 01:20:46 CEST 2010
New submission from Bill Steinmetz <bill.steinmetz at 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 <report at bugs.python.org>
<http://bugs.python.org/issue9015>
_______________________________________
More information about the New-bugs-announce
mailing list