Misleading error message when opening a file (on Windows XP SP 2)
Claudio Grondi
claudio.grondi at freenet.de
Mon Aug 28 05:15:11 EDT 2006
Marc 'BlackJack' Rintsch wrote:
> In <ecu65e$12o$1 at newsreader2.netcologne.de>, Claudio Grondi wrote:
>
>
>>Here an example of what I mean
>>(Python 2.4.2, IDLE 1.1.2, Windows XP SP2, NTFS file system, 80 GByte
>>large file):
>>
>> >>> f = file('veryBigFile.dat','r')
>> >>> f = file('veryBigFile.dat','r+')
>
>
> You mention the file size and gave a "speaking" name to that file -- does
> the file size matter?
Yes, it does.
I haven't tested it yet, but I suppose 2 or 4 GByte threshold value.
>
>
>>Traceback (most recent call last):
>> File "<pyshell#1>", line 1, in -toplevel-
>> f = file('veryBigFile.dat','r+')
>>IOError: [Errno 2] No such file or directory: 'veryBigFile.dat'
>>
>>Is it a BUG or a FEATURE?
>
>
> It's the error number Windows returns for that operation.
So you just try to say:
"it's not Python fault - it's just another bug of the damn Microsoft
Windows operating system", right?
Claudio Grondi
More information about the Python-list
mailing list