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 steve.dower
Recipients BreamoreBoy, Jason.Gross, steve.dower, tim.golden, zach.ware
Date 2014-07-15.16:15:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405440914.11.0.0785422955662.issue18016@psf.upfronthosting.co.za>
In-reply-to
Content
With 2.7 and 3.4 (same for 32- and 64-bit):

>>> f = open('test.bin', 'wb')
>>> f.write(b' ' * (1024*1024*100))
104857600
>>> f.close()
>>> import os
>>> os.stat('test.bin').st_size
104857600

The linked KB only applies to VS 2003 and VS 2005 (VC7 and VC8), so I'm not entirely surprised that this doesn't repro with VC9 or VC10.

For the subprocess case (on 3.4):

>>> import sys, subprocess
>>> p=subprocess.Popen([sys.executable, '-c', 'print(len(input()))'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
>>> p.communicate(b' ' * (1024*1024*100))
(b'104857600\r\n', b'')

I'm inclined to close this as no repro unless we get an actual repro.
History
Date User Action Args
2014-07-15 16:15:14steve.dowersetrecipients: + steve.dower, tim.golden, Jason.Gross, BreamoreBoy, zach.ware
2014-07-15 16:15:14steve.dowersetmessageid: <1405440914.11.0.0785422955662.issue18016@psf.upfronthosting.co.za>
2014-07-15 16:15:14steve.dowerlinkissue18016 messages
2014-07-15 16:15:13steve.dowercreate