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

E

Ethan Furman

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

Any ideas on whether this is Python or MS Windows? (Personally, I'm
betting on Windows).

~Ethan~
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top