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 IOerror when opening a non-existent file for append?
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="paul.keating, post: 2045904"] It probably is misleading. But I'd say it's a misleading Linux message not a misleading Python message. f = file(r'c:\temp\DoesNotExist.txt','a') not only does not give a misleading error under Windows, it works. It appears that under Linux if you open a file for writing, but specify append, it complains about the append if there isn't a file to append to (a reasonable complaint, IMO). [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Misleading IOerror when opening a non-existent file for append?
Top