bug in large file writes, 2.x and 3.x

Ethan Furman ethan at stoneleaf.us
Fri Jun 17 15:15:29 EDT 2011


Ethan Furman wrote:
> Windows platform (XP Pro, SP2).
> 
> This works fine on local drives, but on network (both 2003 Server, and 
> Samba running on FreeBSD) the following produces an error:
> 
> --> data = '?' * 119757831  # use b'?' if on 3.x
> --> test = open(r's:\junk.tst', 'wb')
> --> test.write(data)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> IOError: [Errno 22] Invalid argument


Update:  10Mb worth of data succeeds, 50+Mb fails.



More information about the Python-list mailing list