Cheryl Sabella added the comment:
Since Steve was inclined to close this in 2014 and there haven't been any
additional comments since then, I am going to close this now.
--
nosy: +cheryl.sabella
resolution: -> works for me
stage: -> resolved
status: open -> closed
_
Steve Dower added the comment:
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 n
Mark Lawrence added the comment:
@Jason I'm very sorry about the delay in getting back to you.
Can our Windows gurus shed any light on this one?
--
nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware
type: -> behavior
versions: +Python 3.4, Python 3.5
__
New submission from Jason Gross:
Files opened on Windows in mode 'wb' have a limit on the number of characters
that can be written to them (at once?); attempting to write too many bytes
gives the confusing error “IOError: [Errno 22] Invalid argument”. See
http://support.microsoft.com/default.