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="Fredrik Lundh, post: 2046121"] It depends on the underlying implementation of fopen(), which, on some platforms, doesn't set the right error code for bad mode strings. Python uses some simple heuristics to try to get around this (earlier versions could give "error: no error" for this case), but they're not always able to do the right thing. </F> [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Misleading IOerror when opening a non-existent file for append?
Top