Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7846 > unrolled thread

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

Started byTerry Reedy <tjreedy@udel.edu>
First post2011-06-17 15:09 -0400
Last post2011-06-17 15:09 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: bug in large file writes, 2.x and 3.x Terry Reedy <tjreedy@udel.edu> - 2011-06-17 15:09 -0400

#7846 — Re: bug in large file writes, 2.x and 3.x

FromTerry Reedy <tjreedy@udel.edu>
Date2011-06-17 15:09 -0400
SubjectRe: bug in large file writes, 2.x and 3.x
Message-ID<mailman.86.1308337795.1164.python-list@python.org>
On 6/17/2011 3:03 PM, 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

Just curious, how big is 'large'?
Rather, how bit to get an error?

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

Python should not know the difference betweeen 'c:xxx' and 's:xxx'. The 
error comes from Windoes. But 100 million bytes does not seem really 
large for today's systems.

-- 
Terry Jan Reedy

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web