This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Bill.Steinmetz
Recipients Bill.Steinmetz
Date 2010-06-16.23:20:44
SpamBayes Score 0.0008805859
Marked as misclassified No
Message-id <1276730446.48.0.255465495583.issue9015@psf.upfronthosting.co.za>
In-reply-to
Content
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 :(
History
Date User Action Args
2010-06-16 23:20:46Bill.Steinmetzsetrecipients: + Bill.Steinmetz
2010-06-16 23:20:46Bill.Steinmetzsetmessageid: <1276730446.48.0.255465495583.issue9015@psf.upfronthosting.co.za>
2010-06-16 23:20:44Bill.Steinmetzlinkissue9015 messages
2010-06-16 23:20:44Bill.Steinmetzcreate