Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Misleading error message when opening a file (on Windows XP SP 2)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Fredrik Lundh, post: 1920625"] however, if you use the C level API, you get EINVAL (which presumably means that the CRT cannot open this file in text mode), not ENOENT. this is also true for older versions of Python: Python 2.1.1 (#20, Aug 23 2001, 11:27:17) [MSC 32 bit (Intel)] on win32Traceback (most recent call last): File "<stdin>", line 1, in ? IOError: [Errno 22] Invalid argument: 'bigfile.dat' which probably means that this fix [URL]http://www.python.org/sf/538827[/URL] is partially responsible for the misleading error message. (the cause of this seems to be that when you open a text file for updating, the CRT check if there's a chr(26) at the end of the file, but the 32-bit lseek API doesn't support seeking to positions larger than 2^31-2) </F> [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Misleading error message when opening a file (on Windows XP SP 2)
Top