Message107964
| 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:46 | Bill.Steinmetz | set | recipients:
+ Bill.Steinmetz |
| 2010年06月16日 23:20:46 | Bill.Steinmetz | set | messageid: <1276730446.48.0.255465495583.issue9015@psf.upfronthosting.co.za> |
| 2010年06月16日 23:20:44 | Bill.Steinmetz | link | issue9015 messages |
| 2010年06月16日 23:20:44 | Bill.Steinmetz | create |
|